summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/sso/init13.h
blob: ee58972cfddca89fbeace170ebc8f099c94fe916 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#define I (__extension__ 1.0iF)
#define Pi 3.1415927f

struct __attribute__((scalar_storage_order("little-endian"))) R1
{
  _Complex float F;
};

struct __attribute__((scalar_storage_order("big-endian"))) R2
{
  _Complex float F;
};

struct R1 My_R1 = { Pi - Pi * I };
struct R2 My_R2 = { Pi - Pi * I };