testcase for previous patch!
llvm-svn: 92317
This commit is contained in:
parent
8977c433d3
commit
d866c5a678
@ -25,10 +25,11 @@ int test6(float a, long double b) {
|
||||
|
||||
#define CFSTR __builtin___CFStringMakeConstantString
|
||||
void test7() {
|
||||
CFSTR("\242");
|
||||
CFSTR("\0"); // expected-warning {{ CFString literal contains NUL character }}
|
||||
CFSTR(242); // expected-error {{ CFString literal is not a string constant }} expected-warning {{incompatible integer to pointer conversion}}
|
||||
CFSTR("foo", "bar"); // expected-error {{too many arguments to function call}}
|
||||
const void *X;
|
||||
X = CFSTR("\242");
|
||||
X = CFSTR("\0"); // expected-warning {{ CFString literal contains NUL character }}
|
||||
X = CFSTR(242); // expected-error {{ CFString literal is not a string constant }} expected-warning {{incompatible integer to pointer conversion}}
|
||||
X = CFSTR("foo", "bar"); // expected-error {{too many arguments to function call}}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -91,6 +91,7 @@ int t6() {
|
||||
fn1(); // expected-warning {{ignoring return value of function declared with warn_unused_result attribute}}
|
||||
fn2(92, 21); // expected-warning {{ignoring return value of function declared with pure attribute}}
|
||||
fn3(42); // expected-warning {{ignoring return value of function declared with const attribute}}
|
||||
__builtin_fabsf(0); // expected-warning {{ignoring return value of function declared with const attribute}}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user