summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/pr18661.cpp
blob: 65ffd6f910c6792e7dc29978a4ec7a2a8146a8a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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()