comparison clang/test/CodeGen/xcore-abi.cpp @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children 1f2b6ac9f198
comparison
equal deleted inserted replaced
173:0572611fdcc8 207:2e18cbf3894f
7 7
8 // C++ constants are not placed into the ".cp.rodata" section. 8 // C++ constants are not placed into the ".cp.rodata" section.
9 // CHECK: @cgx = external constant i32 9 // CHECK: @cgx = external constant i32
10 extern const int cgx; 10 extern const int cgx;
11 int fcgx() { return cgx;} 11 int fcgx() { return cgx;}
12 // CHECK: @g1 = global i32 0, align 4 12 // CHECK: @g1 ={{.*}} global i32 0, align 4
13 int g1; 13 int g1;
14 // CHECK: @cg1 = constant i32 0, align 4 14 // CHECK: @cg1 ={{.*}} constant i32 0, align 4
15 extern const int cg1 = 0; 15 extern const int cg1 = 0;
16 16
17 // Regression test for a bug in lib/CodeGen/CodeGenModule.cpp which called 17 // Regression test for a bug in lib/CodeGen/CodeGenModule.cpp which called
18 // getLanguageLinkage() via a null 'VarDecl*'. This was an XCore specific 18 // getLanguageLinkage() via a null 'VarDecl*'. This was an XCore specific
19 // conditional call to GV->setSection(".cp.rodata"). 19 // conditional call to GV->setSection(".cp.rodata").