Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 %s -triple %itanium_abi_triple -fcxx-exceptions -fms-extensions -emit-llvm -o - | FileCheck %s
      2 
      3 extern "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()
     15