You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
417 B
15 lines
417 B
// RUN: %clang_cc1 %s -triple %itanium_abi_triple -fcxx-exceptions -fms-compatibility -emit-llvm -o - | FileCheck %s
|
|
|
|
extern "C" {
|
|
void f();
|
|
|
|
// In MS mode we don't validate the exception specification.
|
|
void f() throw() {
|
|
}
|
|
}
|
|
|
|
// PR18661: Clang would fail to emit function definition with mismatching
|
|
// exception specification, even though it was just treated as a warning.
|
|
|
|
// CHECK: define {{.*}}void @f()
|