Mercurial > hg > CbC > CbC_llvm
annotate clang/test/CodeGen/funique-sections.c @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
rev | line source |
---|---|
150 | 1 // REQUIRES: x86-registered-target |
2 | |
3 // RUN: %clang_cc1 -triple x86_64-pc-linux -S -ffunction-sections -fdata-sections -fno-unique-section-names -o - < %s | FileCheck %s | |
4 // RUN: %clang_cc1 -triple x86_64-pc-linux -S -ffunction-sections -fdata-sections -o - < %s | FileCheck %s --check-prefix=UNIQUE | |
5 | |
6 const int hello = 123; | |
7 void world() {} | |
8 | |
9 // CHECK: .section .text,"ax",@progbits,unique | |
10 // CHECK: .section .rodata,"a",@progbits,unique | |
11 | |
12 // UNIQUE: .section .text.world,"ax",@progbits | |
13 // UNIQUE: .section .rodata.hello,"a",@progbits |