diff options
author | Devang Patel <dpatel@apple.com> | 2010-08-26 22:54:33 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-08-26 22:54:33 +0000 |
commit | b0958c7699d73ded943bce7b58f334f131ff4dfb (patch) | |
tree | 12abcf6465cac7b2a20d8eb0fdb8a9fceeedf1b0 /clang/test/CodeGenCXX/debug-info-byval.cpp | |
parent | ea134f56b16ba5497acc24c048cd699bf9367b4d (diff) | |
download | bcm5719-llvm-b0958c7699d73ded943bce7b58f334f131ff4dfb.tar.gz bcm5719-llvm-b0958c7699d73ded943bce7b58f334f131ff4dfb.zip |
test case for r112238.
llvm-svn: 112239
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-byval.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-byval.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-byval.cpp b/clang/test/CodeGenCXX/debug-info-byval.cpp new file mode 100644 index 00000000000..c99518e7a6b --- /dev/null +++ b/clang/test/CodeGenCXX/debug-info-byval.cpp @@ -0,0 +1,31 @@ +// RUN: %clang -g -S %s -o - | FileCheck %s +// Test to check presense of debug info for byval parameter. +// Radar 8350436. +class DAG { +public: + int i; + int j; +}; + +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); +} + |