aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/attr-mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/attr-mode.c')
-rw-r--r--test/Sema/attr-mode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Sema/attr-mode.c b/test/Sema/attr-mode.c
index e160d8d4846d..c0e0426e0098 100644
--- a/test/Sema/attr-mode.c
+++ b/test/Sema/attr-mode.c
@@ -26,8 +26,8 @@ typedef unsigned unwind_word __attribute((mode(unwind_word)));
int **__attribute((mode(QI)))* i32; // expected-error{{mode attribute}}
-__attribute__((mode(QI))) int invalid_func() { return 1; } // expected-error{{'mode' attribute only applies to variables, enums, fields and typedefs}}
-enum invalid_enum { A1 __attribute__((mode(QI))) }; // expected-error{{'mode' attribute only applies to variables, enums, fields and typedefs}}
+__attribute__((mode(QI))) int invalid_func() { return 1; } // expected-error{{'mode' attribute only applies to variables, enums, typedefs, and non-static data members}}
+enum invalid_enum { A1 __attribute__((mode(QI))) }; // expected-error{{'mode' attribute only applies to}}
typedef _Complex double c32 __attribute((mode(SC)));
int c32_test[sizeof(c32) == 8 ? 1 : -1];