xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/pr18661.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 %s -triple %itanium_abi_triple -fcxx-exceptions -fms-extensions -emit-llvm -o - | FileCheck %s
2*0a6a1f1dSLionel Sambuc 
3*0a6a1f1dSLionel Sambuc extern "C" {
4*0a6a1f1dSLionel Sambuc   void f();
5*0a6a1f1dSLionel Sambuc 
6*0a6a1f1dSLionel Sambuc   // In MS mode we don't validate the exception specification.
f()7*0a6a1f1dSLionel Sambuc   void f() throw() {
8*0a6a1f1dSLionel Sambuc   }
9*0a6a1f1dSLionel Sambuc }
10*0a6a1f1dSLionel Sambuc 
11*0a6a1f1dSLionel Sambuc // PR18661: Clang would fail to emit function definition with mismatching
12*0a6a1f1dSLionel Sambuc // exception specification, even though it was just treated as a warning.
13*0a6a1f1dSLionel Sambuc 
14*0a6a1f1dSLionel Sambuc // CHECK: define void @f()
15