comparison clang/test/CodeGenCXX/global-init-darwin.cpp @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
comparison
equal deleted inserted replaced
147:c2174574ed3a 150:1d019706d866
1 // RUN: %clang_cc1 -triple=x86_64-apple-darwin10 -emit-llvm %s -o - |FileCheck %s
2
3 struct A {
4 A();
5 ~A();
6 };
7
8 A a;
9 A as[2];
10
11 struct B {
12 B();
13 ~B();
14 int f();
15 };
16
17 int i = B().f();
18
19 // CHECK: "__TEXT,__StaticInit,regular,pure_instructions" {
20 // CHECK: "__TEXT,__StaticInit,regular,pure_instructions" {
21 // CHECK: "__TEXT,__StaticInit,regular,pure_instructions" {
22 // CHECK: "__TEXT,__StaticInit,regular,pure_instructions" {
23 // CHECK: "__TEXT,__StaticInit,regular,pure_instructions" {