A8.6.92 MCR (Encoding A1): if coproc == '101x' then SEE "Advanced SIMD and VFP"
[llvm/stm8.git] / test / FrontendC++ / 2009-06-20-DarwinPPCLayout.cpp
blobe0bc043adad906d2de62cbe81e4b0ec9e1294faa
1 // RUN: %llvmgxx -S -m32 %s -o - | grep baz | grep global | grep {struct.bar}
2 // RUN: %llvmgxx -S -m32 %s -o - | grep ccc | grep global | grep {struct.CC}
3 // RUN: %llvmgxx -S -m32 %s -o - | grep quux | grep global | grep {struct.bar}
4 // RUN: %llvmgxx -S -m32 %s -o - | grep foo | grep global | grep {struct.SRCFilter::FilterEntry}
5 // RUN: %llvmgxx -S -m32 %s -o - | grep {struct.bar} | grep {1 x i32}
6 // RUN: %llvmgxx -S -m32 %s -o - | grep {struct.CC} | grep {struct.payre<KBFP,float*} | grep {.base.32} | grep {1 x i32}
7 // RUN: %llvmgxx -S -m32 %s -o - | grep {struct.SRCFilter::FilterEntry} | not grep {1 x i32}
8 // XFAIL: *
9 // XTARGET: powerpc-apple-darwin
11 template<class _T1, class _T2> struct payre {
12 _T1 first;
13 _T2 second;
14 payre() : first(), second() { }
16 struct KBFP {
17 double mCutoffFrequency;
19 class SRCFilter {
20 struct FilterEntry: public payre<KBFP, float*>{};
21 static FilterEntry foo;
23 SRCFilter::FilterEntry SRCFilter::foo; // 12 bytes
24 payre<KBFP, float*> baz; // 16 bytes
25 class CC { // 16 bytes
26 public: payre<KBFP, float*> x;
28 class CC ccc;
30 struct bar { KBFP x; float* y;}; // 16 bytes
31 struct bar quux;