diff options
author | Devang Patel <dpatel@apple.com> | 2010-08-31 19:41:03 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-08-31 19:41:03 +0000 |
commit | 81b79b5fa808730d102cdc4b60a52e602d425de5 (patch) | |
tree | f91e7be5e040bdf5f7cc0295ed7340665e6e8c3c /test/FrontendC++ | |
parent | f727748684ccf3b34270a9e5129181359cf675a3 (diff) | |
download | external_llvm-81b79b5fa808730d102cdc4b60a52e602d425de5.zip external_llvm-81b79b5fa808730d102cdc4b60a52e602d425de5.tar.gz external_llvm-81b79b5fa808730d102cdc4b60a52e602d425de5.tar.bz2 |
Revert r112623. It is causing self host build failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112631 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC++')
-rw-r--r-- | test/FrontendC++/2010-08-31-ByValArg.cpp | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/test/FrontendC++/2010-08-31-ByValArg.cpp b/test/FrontendC++/2010-08-31-ByValArg.cpp deleted file mode 100644 index be0d354..0000000 --- a/test/FrontendC++/2010-08-31-ByValArg.cpp +++ /dev/null @@ -1,53 +0,0 @@ -// This regression test checks byval arguments' debug info. -// Radar 8367011 -// RUN: %llvmgcc -S -O0 -g %s -o - | \ -// RUN: llc --disable-fp-elim -o %t.s -O0 -relocation-model=pic -// RUN: %compile_c %t.s -o %t.o -// RUN: %link %t.o -o %t.exe -// RUN: echo {break get\nrun\np missing_arg.b} > %t.in -// RUN: gdb -q -batch -n -x %t.in %t.exe | tee %t.out | \ -// RUN: grep {1 = 4242} - -// XTARGET: x86_64-apple-darwin - -class EVT { -public: - int a; - int b; - int c; -}; - -class VAL { -public: - int x; - int y; -}; -void foo(EVT e); -EVT bar(); - -void get(int *i, unsigned dl, VAL v, VAL *p, unsigned n, EVT missing_arg) { -//CHECK: .ascii "missing_arg" - EVT e = bar(); - if (dl == n) - foo(missing_arg); -} - - -EVT bar() { - EVT e; - return e; -} - -void foo(EVT e) {} - -int main(){ - VAL v; - EVT ma; - ma.a = 1; - ma.b = 4242; - ma.c = 3; - int i = 42; - get (&i, 1, v, &v, 2, ma); - return 0; -} - |