summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/attr-weakref.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/attr-weakref.cpp')
-rw-r--r--test/SemaCXX/attr-weakref.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/SemaCXX/attr-weakref.cpp b/test/SemaCXX/attr-weakref.cpp
index f3d7a62..0c3f1d2 100644
--- a/test/SemaCXX/attr-weakref.cpp
+++ b/test/SemaCXX/attr-weakref.cpp
@@ -32,3 +32,5 @@ int a9 __attribute__((weakref)); // expected-error {{weakref declaration of 'a9
static int a10();
int a10() __attribute__((weakref ("foo")));
+
+static int v __attribute__((weakref(a1), alias("foo"))); // expected-error {{'weakref' attribute requires a string}}
OpenPOWER on IntegriCloud