blob: 6b1cb351e6302a51cb5ab85898bf3d9977a36448 [file] [log] [blame]
Douglas Gregor5f2bfd42009-02-13 00:10:09 +00001// RUN: clang -emit-llvm %s -o - | grep _Z1fPA10_1X
2int __attribute__((overloadable)) f(int x) { return x; }
3float __attribute__((overloadable)) f(float x) { return x; }
4double __attribute__((overloadable)) f(double x) { return x; }
5double _Complex __attribute__((overloadable)) f(double _Complex x) { return x; }
6typedef short v4hi __attribute__ ((__vector_size__ (8)));
7v4hi __attribute__((overloadable)) f(v4hi x) { return x; }
8
9struct X { };
10void __attribute__((overloadable)) f(struct X (*ptr)[10]) { }
11
12int main() {
13 int iv = 17;
14 float fv = 3.0f;
15 double dv = 4.0;
16 double _Complex cdv;
17 v4hi vv;
18
19 iv = f(iv);
20 fv = f(fv);
21 dv = f(dv);
22 cdv = f(cdv);
23 vv = f(vv);
24}