blob: 843dec00c94bad789ac6bd10e9c5d9e4b7aba06e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// PR c++/34935
/* { dg-do compile } */
/* { dg-final { scan-assembler "_Z1fi" } } */
/* { dg-final { scan-assembler "_Z1fb" } } */
/* { dg-final { scan-assembler "_Z1fd" } } */
/* { dg-final { scan-assembler "_Z1ff" } } */
/* { dg-final { scan-assembler "_Z1fw" } } */
typedef int INT __attribute((may_alias));
void f(int);
void f(INT) { }
typedef bool BOOL __attribute((may_alias));
void f(bool);
void f(BOOL) { }
typedef float FLOAT __attribute((may_alias));
void f(float);
void f(FLOAT) { }
typedef double DOUBLE __attribute((may_alias));
void f(double);
void f(DOUBLE) {}
typedef wchar_t WCHAR_T __attribute((may_alias));
void f(wchar_t);
void f(WCHAR_T) {}
void test()
{
f(0);
f(true);
f(1.0f);
f(1.0);
f(L'f');
}
|