summaryrefslogtreecommitdiff
path: root/tests/headers/complex.h
blob: 04877a4ee4f1ba726023f4cdf8f42e3775e68d42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

#define COMPLEX_TEST(ty_, name_)  \
  struct Test##name_ {            \
    ty_ _Complex mMember;         \
                                  \
  };                              \
  struct Test##name_##Ptr {       \
    ty_ _Complex* mMember;        \
  };

COMPLEX_TEST(double, Double)
COMPLEX_TEST(float, Float)

// FIXME: 128-byte-aligned in some machines
// which we can't support right now in Rust.
// COMPLEX_TEST(long double, LongDouble)