diff options
author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-03-06 09:23:02 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-03-06 09:23:02 +0000 |
commit | dd5132ce2569a1ef901c92772eb8581aa1705f25 (patch) | |
tree | 7e0a88c3c6cb70271946aaa95a231b3da55d9f91 /test/Sema | |
parent | 79ade4e028932fcb9dab15e2fb2305ca15ab0f14 (diff) | |
download | src-dd5132ce2569a1ef901c92772eb8581aa1705f25.tar.gz src-dd5132ce2569a1ef901c92772eb8581aa1705f25.zip |
Update clang to r97873.
Notes
Notes:
svn path=/vendor/clang/dist/; revision=204793
Diffstat (limited to 'test/Sema')
-rw-r--r-- | test/Sema/block-byref-args.c | 6 | ||||
-rw-r--r-- | test/Sema/scope-check.c | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/test/Sema/block-byref-args.c b/test/Sema/block-byref-args.c index 7b7cc3d2c49b..255c97b280c9 100644 --- a/test/Sema/block-byref-args.c +++ b/test/Sema/block-byref-args.c @@ -13,6 +13,10 @@ int main(int argc, char **argv) { int (^XXX)(void) = ^{ return III+JJJJ; }; + // rdar 7671883 + __block char array[10] = {'a', 'b', 'c', 'd'}; + char (^ch)() = ^{ array[1] = 'X'; return array[5]; }; + ch(); + return 0; } - diff --git a/test/Sema/scope-check.c b/test/Sema/scope-check.c index 7d293f2747ed..6f8640255a9e 100644 --- a/test/Sema/scope-check.c +++ b/test/Sema/scope-check.c @@ -140,13 +140,13 @@ L2: ; L3: L4: - goto *P; // expected-error {{illegal indirect goto in protected scope, unknown effect on scopes}} + goto *P; // expected-warning {{illegal indirect goto in protected scope, unknown effect on scopes}} goto L3; // ok goto L4; // ok void *Ptrs[] = { &&L2, // Ok. - &&L3 // expected-error {{address taken of label in protected scope, jump to it would have unknown effect on scope}} + &&L3 // expected-warning {{address taken of label in protected scope, jump to it would have unknown effect on scope}} }; } |