summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/debug-info-method.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-01-05 20:03:07 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-01-05 20:03:07 +0000
commit219c7d9f6491c4963e62c1d21d3e45713fbfea0c (patch)
treef8ca36ff35ab3d972b58652a192bc51babf8f6d6 /clang/test/CodeGenCXX/debug-info-method.cpp
parenta234c65613a92357d8cf963444d35a51885d93ad (diff)
downloadbcm5719-llvm-219c7d9f6491c4963e62c1d21d3e45713fbfea0c.tar.gz
bcm5719-llvm-219c7d9f6491c4963e62c1d21d3e45713fbfea0c.zip
PR14573: Unnamed parameters in debug info, Part 2
Catch some cases I'd missed in r171605 related to unnamed parameters of record type. This resolves all remaining cases of PR14573 suppression in the GDB 7.5 test suite. Fix to the test suite to follow. llvm-svn: 171633
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-method.cpp')
-rw-r--r--clang/test/CodeGenCXX/debug-info-method.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-method.cpp b/clang/test/CodeGenCXX/debug-info-method.cpp
index 74e44d10728..8923d5f7e80 100644
--- a/clang/test/CodeGenCXX/debug-info-method.cpp
+++ b/clang/test/CodeGenCXX/debug-info-method.cpp
@@ -1,12 +1,19 @@
-// RUN: %clang_cc1 -emit-llvm -g %s -o - | FileCheck %s
-// CHECK: metadata !"_ZN1A3fooEi", {{.*}}, i32 258
+// RUN: %clang_cc1 -emit-llvm -std=c++11 -g %s -o - | FileCheck %s
+// CHECK: metadata !"_ZN1A3fooEiS_3$_0", {{.*}}, i32 258
// CHECK: ""{{.*}}DW_TAG_arg_variable
+// CHECK: ""{{.*}}DW_TAG_arg_variable
+// CHECK: ""{{.*}}DW_TAG_arg_variable
+union {
+ int a;
+ float b;
+} u;
+
class A {
protected:
- void foo(int);
+ void foo(int, A, decltype(u));
};
-void A::foo(int) {
+void A::foo(int, A, decltype(u)) {
}
A a;
OpenPOWER on IntegriCloud