diff options
Diffstat (limited to 'test/Sema/unused-expr.c')
-rw-r--r-- | test/Sema/unused-expr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/Sema/unused-expr.c b/test/Sema/unused-expr.c index 15608ec..9949887 100644 --- a/test/Sema/unused-expr.c +++ b/test/Sema/unused-expr.c @@ -95,7 +95,7 @@ int t6() { return 0; } -int t7 __attribute__ ((warn_unused_result)); // expected-warning {{'warn_unused_result' attribute only applies to function types}} +int t7 __attribute__ ((warn_unused_result)); // expected-warning {{'warn_unused_result' attribute only applies to functions}} // PR4010 int (*fn4)(void) __attribute__ ((warn_unused_result)); @@ -118,3 +118,6 @@ void f(int i, ...) { __builtin_va_arg(ap, int); __builtin_va_end(ap); } + +// PR8371 +int fn5() __attribute__ ((__const)); |