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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // REQUIRES: x86-registered-target
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 // RUN: %clang_cc1 -triple x86_64-pc-linux -S -ffunction-sections -fdata-sections -fno-unique-section-names -o - < %s | FileCheck %s
anatofuz
parents:
diff changeset
4 // RUN: %clang_cc1 -triple x86_64-pc-linux -S -ffunction-sections -fdata-sections -o - < %s | FileCheck %s --check-prefix=UNIQUE
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 const int hello = 123;
anatofuz
parents:
diff changeset
7 void world() {}
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 // CHECK: .section .text,"ax",@progbits,unique
anatofuz
parents:
diff changeset
10 // CHECK: .section .rodata,"a",@progbits,unique
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 // UNIQUE: .section .text.world,"ax",@progbits
anatofuz
parents:
diff changeset
13 // UNIQUE: .section .rodata.hello,"a",@progbits