diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2016-05-04 21:08:13 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2016-05-04 21:08:13 +0000 |
commit | 781fda93874bcce69573fc965f6a4243a89ac6ad (patch) | |
tree | 586e3367a19ce91264e22e4c6728ca3a45a94c54 /clang/test/Sema/enable_if.c | |
parent | e13787ef3fd803cd861d14c25493f4b140f9e1aa (diff) | |
download | bcm5719-llvm-781fda93874bcce69573fc965f6a4243a89ac6ad.tar.gz bcm5719-llvm-781fda93874bcce69573fc965f6a4243a89ac6ad.zip |
Add the Pure attribute to C99 builtin functions from ctype.h. This is a corrected version of r266199 with test case fixes.
Patch by Taewook Oh.
llvm-svn: 268553
Diffstat (limited to 'clang/test/Sema/enable_if.c')
-rw-r--r-- | clang/test/Sema/enable_if.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/enable_if.c b/clang/test/Sema/enable_if.c index 4034aa2bfab..1cc14659021 100644 --- a/clang/test/Sema/enable_if.c +++ b/clang/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 |