summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/debug-info-class-limited.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-class-limited.cpp')
-rw-r--r--clang/test/CodeGenCXX/debug-info-class-limited.cpp26
1 files changed, 24 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-class-limited.cpp b/clang/test/CodeGenCXX/debug-info-class-limited.cpp
index fd542a8bb0a..f55b9b18799 100644
--- a/clang/test/CodeGenCXX/debug-info-class-limited.cpp
+++ b/clang/test/CodeGenCXX/debug-info-class-limited.cpp
@@ -9,6 +9,28 @@ struct foo {
typedef foo bar;
-bar *f;
-bar g;
+bar *a;
+bar b;
+}
+
+namespace test1 {
+struct foo {
+ int i;
+};
+
+foo *foo(foo *a) {
+ foo *b = new foo(*a);
+ return b;
+}
+}
+
+namespace test2 {
+struct foo {
+ int i;
+};
+
+extern int bar(foo *a);
+int baz(foo *a) {
+ return bar(a);
+}
}
OpenPOWER on IntegriCloud