1 // REQUIRES: xcore-registered-target
3 // RUN: %clang_cc1 -triple xcore-unknown-unknown -fno-signed-char -fno-common -emit-llvm -o - -x c++ %s | FileCheck %s
5 // CHECK: target triple = "xcore-unknown-unknown"
8 // C++ constants are not placed into the ".cp.rodata" section.
9 // CHECK: @cgx = external constant i32
11 int fcgx() { return cgx
;}
12 // CHECK: @g1 ={{.*}} global i32 0, align 4
14 // CHECK: @cg1 ={{.*}} constant i32 0, align 4
15 extern const int cg1
= 0;
17 // Regression test for a bug in lib/CodeGen/CodeGenModule.cpp which called
18 // getLanguageLinkage() via a null 'VarDecl*'. This was an XCore specific
19 // conditional call to GV->setSection(".cp.rodata").
26 // CHECK-NOT: frame-pointer