| 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(void) {} |
| 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 |