diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2009-12-01 11:08:04 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2009-12-01 11:08:04 +0000 |
commit | 4b08eb6308ca90a6c08e2fc79d100821b1b1f6aa (patch) | |
tree | 867cbbe32a66fd7d62dd9ce9df23a23fefdb8290 /test/Sema/switch.c | |
parent | 6df2408694f81a03eb8b0e3b013272042233c061 (diff) | |
download | FreeBSD-src-4b08eb6308ca90a6c08e2fc79d100821b1b1f6aa.zip FreeBSD-src-4b08eb6308ca90a6c08e2fc79d100821b1b1f6aa.tar.gz |
Update clang to r90226.
Diffstat (limited to 'test/Sema/switch.c')
-rw-r--r-- | test/Sema/switch.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/Sema/switch.c b/test/Sema/switch.c index 122947e..3ee3712 100644 --- a/test/Sema/switch.c +++ b/test/Sema/switch.c @@ -1,5 +1,4 @@ // RUN: clang-cc -fsyntax-only -verify %s - void f (int z) { while (z) { default: z--; // expected-error {{statement not in switch}} @@ -75,3 +74,14 @@ void test6() { break; } } + +// PR5606 +int f0(int var) { + switch (va) { // expected-error{{use of undeclared identifier 'va'}} + case 1: + break; + case 2: + return 1; + } + return 2; +} |