summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/attr-notail.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/attr-notail.c')
-rw-r--r--clang/test/Sema/attr-notail.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/test/Sema/attr-notail.c b/clang/test/Sema/attr-notail.c
index 7b8371fe395..4d05fcf6f2c 100644
--- a/clang/test/Sema/attr-notail.c
+++ b/clang/test/Sema/attr-notail.c
@@ -1,7 +1,9 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
-int callee0() __attribute__((not_tail_called,always_inline)); // expected-error{{'not_tail_called' and 'always_inline' attributes are not compatible}}
-int callee1() __attribute__((always_inline,not_tail_called)); // expected-error{{'always_inline' and 'not_tail_called' attributes are not compatible}}
+int callee0() __attribute__((not_tail_called,always_inline)); // expected-error{{'not_tail_called' and 'always_inline' attributes are not compatible}} \
+// expected-note{{conflicting attribute is here}}
+int callee1() __attribute__((always_inline,not_tail_called)); // expected-error{{'always_inline' and 'not_tail_called' attributes are not compatible}} \
+// expected-note{{conflicting attribute is here}}
int foo(int a) {
return a ? callee0() : callee1();
OpenPOWER on IntegriCloud