1 // RUN: %clang_cc1 %s -verify
2 // RUN: %clang_cc1 %s -ast-dump | FileCheck %s
3 // expected-no-diagnostics
4 
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
19