Home | History | Annotate | Download | only in CodeGenCXX
      1 // REQUIRES: x86-registered-target,x86-64-registered-target
      2 // RUN: %clang_cc1 -triple x86_64-apple-darwin -S %s -o %t-64.s
      3 // RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s
      4 // RUN: %clang_cc1 -triple i386-apple-darwin -S %s -o %t-32.s
      5 // RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s
      6 
      7 extern "C" int printf(...);
      8 
      9 struct S {
     10   S() { printf("S::S()\n"); }
     11   int iS;
     12 };
     13 
     14 struct M {
     15   S ARR_S;
     16 };
     17 
     18 int main() {
     19   M m1;
     20 }
     21 
     22 // CHECK-LP64: callq __ZN1SC1Ev
     23 
     24 // CHECK-LP32: calll L__ZN1SC1Ev
     25