15 lines · cpp
1// RUN: %clang_cc1 %s -triple %itanium_abi_triple -fcxx-exceptions -fms-compatibility -emit-llvm -o - | FileCheck %s2 3extern "C" {4 void f();5 6 // In MS mode we don't validate the exception specification.7 void f() throw() {8 }9}10 11// PR18661: Clang would fail to emit function definition with mismatching12// exception specification, even though it was just treated as a warning.13 14// CHECK: define {{.*}}void @f()15