19 lines · c
1// RUN: %clang_cc1 %s -verify2// RUN: %clang_cc1 %s -ast-dump | FileCheck %s3// expected-no-diagnostics4 5// PR42113: The following caused an assertion in mergeFunctionTypes6// because it causes one side to have an exception specification, which7// isn't typically supported in C.8void PR42113a();9void PR42113a(void) __attribute__((nothrow));10// CHECK: FunctionDecl {{.*}} PR42113a11// CHECK: FunctionDecl {{.*}} PR42113a12// CHECK: NoThrowAttr13void PR42113b() __attribute__((nothrow));14// CHECK: FunctionDecl {{.*}} PR42113b15// CHECK: NoThrowAttr16 __attribute__((nothrow)) void PR42113c();17// CHECK: FunctionDecl {{.*}} PR42113c18// CHECK: NoThrowAttr19