brintos

brintos / llvm-project-archived public Read only

0
0
Text · 417 B · dc9f4ac Raw
15 lines · cpp
1// RUN: %clang_cc1 %s -triple %itanium_abi_triple -fcxx-exceptions -fms-compatibility -emit-llvm -o - | FileCheck %s2 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 mismatching12// exception specification, even though it was just treated as a warning.13 14// CHECK: define {{.*}}void @f()15