summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-07-15 21:33:26 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-07-15 21:33:26 +0000
commitca0dd25d1d053be4557fe32691e31e728b30fad5 (patch)
tree7ea819564add9d112d6489f4320927a106eefac9
parentad4aaf11897cc5e9d443b0a80114daacf385f6df (diff)
downloadflang-ca0dd25d1d053be4557fe32691e31e728b30fad5.tar.gz
Test case for r18266 (serialization support for TagDecl:IsCompleteDefinitionRequired)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186351 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/PCH/debug-info-limited-struct.c4
-rw-r--r--test/PCH/debug-info-limited-struct.h8
2 files changed, 12 insertions, 0 deletions
diff --git a/test/PCH/debug-info-limited-struct.c b/test/PCH/debug-info-limited-struct.c
new file mode 100644
index 0000000000..9d0ed26f34
--- /dev/null
+++ b/test/PCH/debug-info-limited-struct.c
@@ -0,0 +1,4 @@
+// RUN: %clang_cc1 -emit-pch -o %t %S/debug-info-limited-struct.h
+// RUN: %clang_cc1 -include-pch %t -emit-llvm %s -g -o - | FileCheck %s
+
+// CHECK-DAG: [ DW_TAG_structure_type ] [foo] {{.*}} [def]
diff --git a/test/PCH/debug-info-limited-struct.h b/test/PCH/debug-info-limited-struct.h
new file mode 100644
index 0000000000..593e722ce9
--- /dev/null
+++ b/test/PCH/debug-info-limited-struct.h
@@ -0,0 +1,8 @@
+struct foo {
+ int i;
+};
+
+void func() {
+ struct foo *f;
+ f->i = 3;
+}