diff options
Diffstat (limited to 'test/Sema/enable_if.c')
-rw-r--r-- | test/Sema/enable_if.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Sema/enable_if.c b/test/Sema/enable_if.c index 4034aa2bfa..1cc1465902 100644 --- a/test/Sema/enable_if.c +++ b/test/Sema/enable_if.c @@ -72,8 +72,8 @@ int isdigit(int c) __attribute__((overloadable)) // expected-note{{candidate fu __attribute__((unavailable("'c' must have the value of an unsigned char or EOF"))); void test3(int c) { - isdigit(c); - isdigit(10); + isdigit(c); // expected-warning{{ignoring return value of function declared with pure attribute}} + isdigit(10); // expected-warning{{ignoring return value of function declared with pure attribute}} #ifndef CODEGEN isdigit(-10); // expected-error{{call to unavailable function 'isdigit': 'c' must have the value of an unsigned char or EOF}} #endif |