[cfe-commits] r112239 - /cfe/trunk/test/CodeGenCXX/debug-info-byval.cpp
Devang Patel
dpatel at apple.com
Thu Aug 26 15:54:33 PDT 2010
Author: dpatel
Date: Thu Aug 26 17:54:33 2010
New Revision: 112239
URL: http://llvm.org/viewvc/llvm-project?rev=112239&view=rev
Log:
test case for r112238.
Added:
cfe/trunk/test/CodeGenCXX/debug-info-byval.cpp
Added: cfe/trunk/test/CodeGenCXX/debug-info-byval.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/debug-info-byval.cpp?rev=112239&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/debug-info-byval.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/debug-info-byval.cpp Thu Aug 26 17:54:33 2010
@@ -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);
+}
+
More information about the cfe-commits
mailing list