diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-06-08 15:36:55 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-08 15:36:55 +0000 |
commit | 8ba99c00327a4394e7568244d6cffd6e62625a7a (patch) | |
tree | 7ab9fa5634c95f5df8575db81b24ea5586e65b28 /test/Sema/block-call.c | |
parent | 70b4596d9d0d559e94f9bad8f43463e5d98a577e (diff) | |
download | src-8ba99c00327a4394e7568244d6cffd6e62625a7a.tar.gz src-8ba99c00327a4394e7568244d6cffd6e62625a7a.zip |
Notes
Diffstat (limited to 'test/Sema/block-call.c')
-rw-r--r-- | test/Sema/block-call.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Sema/block-call.c b/test/Sema/block-call.c index 9d3ff71e2195..c42b642337ca 100644 --- a/test/Sema/block-call.c +++ b/test/Sema/block-call.c @@ -7,10 +7,10 @@ int main() { int (*FPL) (int) = FP; // C doesn't consider this an error. // For Blocks, the ASTContext::typesAreBlockCompatible() makes sure this is an error. - int (^PFR) (int) = IFP; // expected-error {{incompatible block pointer types initializing 'int (^)()', expected 'int (^)(int)'}} + int (^PFR) (int) = IFP; // OK PFR = II; // OK - int (^IFP) () = PFR; + int (^IFP) () = PFR; // OK const int (^CIC) () = IFP; // expected-error {{incompatible block pointer types initializing 'int (^)()', expected 'int const (^)()'}} |