aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/struct-decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/struct-decl.c')
-rw-r--r--test/Sema/struct-decl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Sema/struct-decl.c b/test/Sema/struct-decl.c
index 8d3d74de7671..055f14bf4dc6 100644
--- a/test/Sema/struct-decl.c
+++ b/test/Sema/struct-decl.c
@@ -66,3 +66,6 @@ void test_hiding() {
struct hiding_1 *p = hiding_1();
struct hiding_2 *q = hiding_2;
}
+
+struct PreserveAttributes {};
+typedef struct __attribute__((noreturn)) PreserveAttributes PreserveAttributes_t; // expected-warning {{'noreturn' attribute only applies to functions and methods}}