diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-07-15 21:33:26 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-07-15 21:33:26 +0000 |
commit | ca0dd25d1d053be4557fe32691e31e728b30fad5 (patch) | |
tree | 7ea819564add9d112d6489f4320927a106eefac9 | |
parent | ad4aaf11897cc5e9d443b0a80114daacf385f6df (diff) | |
download | flang-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.c | 4 | ||||
-rw-r--r-- | test/PCH/debug-info-limited-struct.h | 8 |
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; +} |