35 lines
		
	
	
		
			425 B
		
	
	
	
		
			C++
		
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			425 B
		
	
	
	
		
			C++
		
	
	
	
| // RUN: %clang_cc1 -emit-llvm %s -o - -std=c++11 -triple %itanium_abi_triple | FileCheck %s
 | |
| 
 | |
| extern "C" int printf(...);
 | |
| 
 | |
| struct S {
 | |
|   S() { printf("S::S\n"); }
 | |
| };
 | |
| 
 | |
| struct A {
 | |
|   double x;
 | |
|   A() : x(), y(), s() { printf("x = %f y = %x \n", x, y); }
 | |
|   int *y;
 | |
|   S s;
 | |
| };
 | |
| 
 | |
| A a;
 | |
| 
 | |
| struct B {
 | |
|   B() = default;
 | |
|   B(const B&);
 | |
| };
 | |
| 
 | |
| // CHECK-NOT: _ZL1b
 | |
| static B b;
 | |
| 
 | |
| struct C {
 | |
|   ~C();
 | |
| };
 | |
| 
 | |
| // CHECK: _ZL1c
 | |
| static C c[4];
 | |
| 
 | |
| int main() {
 | |
| }
 |