diff options
Diffstat (limited to 'test/Sema/recover-goto.c')
-rw-r--r-- | test/Sema/recover-goto.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/recover-goto.c b/test/Sema/recover-goto.c new file mode 100644 index 0000000..e7b9f3c --- /dev/null +++ b/test/Sema/recover-goto.c @@ -0,0 +1,4 @@ +// RUN: clang-cc -fsyntax-only %s -verify + +void a() {goto A; // expected-error {{use of undeclared label}} +// expected-error {{expected '}'}} |