[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / Sema / attr-nothrow.c
blobc44462846ec87be7a883e395546f5cb4dd0a1e81
1 // RUN: %clang_cc1 %s -verify
2 // RUN: %clang_cc1 %s -ast-dump | FileCheck %s
3 // expected-no-diagnostics
5 // PR42113: The following caused an assertion in mergeFunctionTypes
6 // because it causes one side to have an exception specification, which
7 // isn't typically supported in C.
8 void PR42113a();
9 void PR42113a(void) __attribute__((nothrow));
10 // CHECK: FunctionDecl {{.*}} PR42113a
11 // CHECK: FunctionDecl {{.*}} PR42113a
12 // CHECK: NoThrowAttr
13 void PR42113b() __attribute__((nothrow));
14 // CHECK: FunctionDecl {{.*}} PR42113b
15 // CHECK: NoThrowAttr
16 __attribute__((nothrow)) void PR42113c();
17 // CHECK: FunctionDecl {{.*}} PR42113c
18 // CHECK: NoThrowAttr