summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH/struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/PCH/struct.c')
-rw-r--r--clang/test/PCH/struct.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/PCH/struct.c b/clang/test/PCH/struct.c
index 220f0794656..5ea9fe27570 100644
--- a/clang/test/PCH/struct.c
+++ b/clang/test/PCH/struct.c
@@ -23,6 +23,8 @@ int get_very_fun() {
return fun2->very_fun;
}
+int *int_ptr_fail = &fun->is_ptr; // expected-error{{address of bit-field requested}}
+
/* FIXME: DeclContexts aren't yet able to find "struct Nested" nested
within "struct S", so causing the following to fail. When not using
PCH, this works because Sema puts the nested struct onto the
OpenPOWER on IntegriCloud