blob: 235867831e28e1129580efeab2778209102d1059 [file] [log] [blame]
Stephen Hines651f13c2014-04-23 16:59:28 -07001// RUN: %clang_cc1 %s -triple %itanium_abi_triple -fcxx-exceptions -fms-extensions -emit-llvm -o - | FileCheck %s
2
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 mismatching
12// exception specification, even though it was just treated as a warning.
13
14// CHECK: define void @f()