Mercurial > hg > CbC > CbC_llvm
view clang/test/CodeGenCXX/extern-section-attribute.cpp @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | 2e18cbf3894f |
line wrap: on
line source
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-pc-linux-gnu | FileCheck %s extern int aa __attribute__((section(".sdata"))); // CHECK-DAG: @aa = external global i32, section ".sdata", align 4 extern int bb __attribute__((section(".sdata"))) = 1; // CHECK-DAG: @bb = global i32 1, section ".sdata", align 4 int foo() { return aa + bb; }