blob: 968ef469f9c112220d600149b1d6806185761cdc [file] [log] [blame]
Mike Stump6ce0c392009-05-15 21:47:08 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
3int i;
4
5void foo() {
6 (throw,throw);
7 (1 ? throw 1 : throw 2);
8 throw int(1);
9 throw;
10 throw 1;
11 throw;
12 1 ? throw : (void)42;
13 // gcc doesn't parse the below, but we do
14 __extension__ throw 1;
15 (void)throw; // expected-error {{expected expression}}
16}