blob: 1473fe57db01a12f040036af50bba80a562dedbb [file] [log] [blame]
Rafael Espindola6b07a1c2015-02-20 18:08:57 +00001// 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
6const int hello = 123;
7void 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