diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2013-09-13 19:35:18 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2013-09-13 19:35:18 +0000 |
| commit | 3b1dde63a2ae520b6969d4f16e87e7b3476a5ce6 (patch) | |
| tree | a81c707504502a8fde01ecade5ef24482f4ba892 /clang/test | |
| parent | a3c58c02f160bf77ba57f587779b7ac20e126e97 (diff) | |
| download | bcm5719-llvm-3b1dde63a2ae520b6969d4f16e87e7b3476a5ce6.tar.gz bcm5719-llvm-3b1dde63a2ae520b6969d4f16e87e7b3476a5ce6.zip | |
Switching the WeakRef attribute to using the new checkStringLiteralArgument helper function.
llvm-svn: 190719
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/SemaCXX/attr-weakref.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/attr-weakref.cpp b/clang/test/SemaCXX/attr-weakref.cpp index f3d7a6241c9..0c3f1d20e7f 100644 --- a/clang/test/SemaCXX/attr-weakref.cpp +++ b/clang/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}} |

