blob: e9169003a9b8638fde90257b373dd2ac2c542c3b (
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
|
/* Test qualifier discard of typeof for atomic types. */
/* { dg-do compile } */
/* { dg-options "-std=c11" } */
extern int i;
extern int * p;
extern int _Atomic const ci;
extern __typeof (ci) i;
extern int _Atomic volatile vi;
extern __typeof (vi) i;
extern int * _Atomic restrict ri;
extern __typeof (ri) p;
void f(void)
{
__auto_type aci = ci;
int *paci = &aci;
__auto_type avi = vi;
int *pavi = &avi;
__auto_type ari = ri;
int **pari = &ari;
}
|