mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-03 05:36:06 +00:00

We accept these with a warning in MS mode, but we would previously mark them invalid, causing us not to emit code for them. Differential Revision: http://llvm-reviews.chandlerc.com/D2681 llvm-svn: 200815
15 lines
408 B
C++
15 lines
408 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()
|