summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/attr-unavailable.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-02-25 20:51:14 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-02-25 20:51:14 +0000
commit5e24f2a4ad3a3623349f058e99c7c71e1c8d705f (patch)
tree70a005e914da63da479f7b63b05e9bb44e5eebbd /test/SemaCXX/attr-unavailable.cpp
parent00cf3cc2718671aa48e8da264a523b0058a8591e (diff)
Sprinkle optional text of the "unavailable' attribute
where ever such attribute causes an error diagnostic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126509 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/attr-unavailable.cpp')
-rw-r--r--test/SemaCXX/attr-unavailable.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/SemaCXX/attr-unavailable.cpp b/test/SemaCXX/attr-unavailable.cpp
index 81db505e1e..fe3e8b1470 100644
--- a/test/SemaCXX/attr-unavailable.cpp
+++ b/test/SemaCXX/attr-unavailable.cpp
@@ -24,8 +24,7 @@ namespace radar9046492 {
#define FOO __attribute__((unavailable("not available - replaced")))
void foo() FOO; // expected-note {{candidate function has been explicitly made unavailable}}
-
void bar() {
- foo(); // expected-error {{call to unavailable function 'foo': not available - replaced}}
+ foo(); // expected-error {{call to unavailable function 'foo' not available - replaced}}
}
}