
Several tests wouldn't pass when executed on an armv7a_pc_linux triple due to the non-default arm_aapcs calling convention produced on the function definitions in the IR output. Account for this with the application of a little regex. Patch by Ying Yi. llvm-svn: 240971
15 lines
414 B
C++
15 lines
414 B
C++
// RUN: %clang_cc1 %s -triple %itanium_abi_triple -fcxx-exceptions -fms-extensions -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()
|