"git@repo.hca.bsc.es:rferrer/llvm-epi-0.8.git" did not exist on "3194fca45fccafc8b9c97975e62afdde7f8c54cc"
Newer
Older
// RUN: %clang_cc1 %s -emit-llvm -o - -verify | FileCheck %s
int g();
int foo(int i) {
}
int g(int i) {
}
// rdar://6110827
typedef void T(void);
void test3(T f) {
f();
}
int a(int);
int a() {return 1;}
void f0() {}
void f1();
void f2(void) {
f1(1, 2, 3);
}
void f1() {}
Chris Lattner
committed
// CHECK: define {{.*}} @f3{{\(\)|\(.*sret.*\)}}
Chris Lattner
committed
struct foo { int X, Y, Z; } f3() {
Chris Lattner
committed
}
// PR4423 - This shouldn't crash in codegen
void f4() {}
void f5() { f4(42); } //expected-warning {{too many arguments}}
// Qualifiers on parameter types shouldn't make a difference.
static void f6(const float f, const float g) {
}
void f7(float f, float g) {
f6(f, g);
// CHECK: define void @f7(float{{.*}}, float{{.*}})
// CHECK: call void @f6(float{{.*}}, float{{.*}})
}