diff options
Diffstat (limited to 'test/Sema/overloadable.c')
-rw-r--r-- | test/Sema/overloadable.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Sema/overloadable.c b/test/Sema/overloadable.c index 136f8e93d7..22ced49b61 100644 --- a/test/Sema/overloadable.c +++ b/test/Sema/overloadable.c @@ -42,9 +42,12 @@ double promote(double) __attribute__((__overloadable__)); long double promote(long double) __attribute__((__overloadable__)); void promote() __attribute__((__overloadable__)); // expected-error{{'overloadable' function 'promote' must have a prototype}} +void promote(...) __attribute__((__overloadable__, __unavailable__)); // \ + // expected-note{{unavailable function is declared here}} void test_promote(short* sp) { promote(1.0); + promote(sp); // expected-error{{call to function 'promote' that has been intentionally made unavailable}} } |