1*67e74705SXin Li // REQUIRES: x86-registered-target
2*67e74705SXin Li
3*67e74705SXin Li // RUN: %clang_cc1 -triple x86_64-pc-linux -S -ffunction-sections -fdata-sections -fno-unique-section-names -o - < %s | FileCheck %s
4*67e74705SXin Li // RUN: %clang_cc1 -triple x86_64-pc-linux -S -ffunction-sections -fdata-sections -o - < %s | FileCheck %s --check-prefix=UNIQUE
5*67e74705SXin Li
6*67e74705SXin Li const int hello = 123;
world()7*67e74705SXin Li void world() {}
8*67e74705SXin Li
9*67e74705SXin Li // CHECK: .section .text,"ax",@progbits,unique
10*67e74705SXin Li // CHECK: .section .rodata,"a",@progbits,unique
11*67e74705SXin Li
12*67e74705SXin Li // UNIQUE: .section .text.world,"ax",@progbits
13*67e74705SXin Li // UNIQUE: .section .rodata.hello,"a",@progbits
14