diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2013-07-23 12:13:14 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2013-07-23 12:13:14 +0000 |
commit | 7ced167a095864a2718462e1a0fdfbb8f099f4f7 (patch) | |
tree | 37639861216d3a3a7d0db21e4693b66ec7e5be5a /clang/test/Sema/overloadable.c | |
parent | 188bfd26a871d5234614d20d406cb80b686a556f (diff) | |
download | bcm5719-llvm-7ced167a095864a2718462e1a0fdfbb8f099f4f7.tar.gz bcm5719-llvm-7ced167a095864a2718462e1a0fdfbb8f099f4f7.zip |
Correcting the NSObject and Overloadable attribute diagnostics so that the count reported matches reality.
llvm-svn: 186936
Diffstat (limited to 'clang/test/Sema/overloadable.c')
-rw-r--r-- | clang/test/Sema/overloadable.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Sema/overloadable.c b/clang/test/Sema/overloadable.c index ad021898f2a..076e05e91a2 100644 --- a/clang/test/Sema/overloadable.c +++ b/clang/test/Sema/overloadable.c @@ -1,6 +1,7 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s int var __attribute__((overloadable)); // expected-error{{'overloadable' attribute can only be applied to a function}} +void params(void) __attribute__((overloadable(12))); // expected-error {{attribute takes no arguments}} int *f(int) __attribute__((overloadable)); // expected-note 2{{previous overload of function is here}} float *f(float); // expected-error{{overloaded function 'f' must have the 'overloadable' attribute}} |