2014-01-14 19:35:09 +00:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -o - %s | FileCheck %s
|
2010-04-20 22:02:31 +00:00
|
|
|
// pr6644
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
namespace N {
|
|
|
|
struct X {
|
|
|
|
virtual void f();
|
|
|
|
};
|
|
|
|
void X::f() { }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-12-12 16:07:11 +00:00
|
|
|
// CHECK-LABEL: define {{.*}}void @_ZN1N1X1fEv
|
2013-02-14 01:18:37 +00:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
static void test2_f() {
|
|
|
|
}
|
2013-08-15 06:47:53 +00:00
|
|
|
// CHECK-LABEL: define internal void @_Z7test2_fv
|
2013-02-23 00:26:28 +00:00
|
|
|
static void test2_f(int x) {
|
|
|
|
}
|
2013-08-15 06:47:53 +00:00
|
|
|
// CHECK-LABEL: define internal void @_Z7test2_fi
|
2013-02-14 01:18:37 +00:00
|
|
|
void test2_use() {
|
|
|
|
test2_f();
|
2013-02-23 00:26:28 +00:00
|
|
|
test2_f(42);
|
2013-02-14 01:18:37 +00:00
|
|
|
}
|
|
|
|
}
|
2013-02-14 15:38:59 +00:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
struct test3_s {
|
|
|
|
};
|
|
|
|
bool operator==(const int& a, const test3_s& b) {
|
|
|
|
}
|
|
|
|
}
|