[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / Parser / cxx-throw.cpp
bloba1be710fb5c00a3e87a60654076af320e9f3e854
1 // RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fsyntax-only -verify %s
3 int i;
5 void 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 __extension__ throw 1; // expected-error {{expected expression}}
14 (void)throw; // expected-error {{expected expression}}
17 void f() throw(static); // expected-error {{expected a type}} expected-error {{does not allow storage class}}