brintos

brintos / llvm-project-archived public Read only

0
0
Text · 535 B · e24d13c Raw
14 lines · c
1// REQUIRES: x86-registered-target2 3// RUN: %clang_cc1 -triple x86_64-pc-linux -S -ffunction-sections -fdata-sections -fno-unique-section-names  -o - < %s | FileCheck %s4// RUN: %clang_cc1 -triple x86_64-pc-linux -S -ffunction-sections -fdata-sections -o - < %s | FileCheck %s --check-prefix=UNIQUE5 6const int hello = 123;7void world(void) {}8 9// CHECK: .section .text,"ax",@progbits,unique10// CHECK: .section .rodata,"a",@progbits,unique11 12// UNIQUE: .section .text.world,"ax",@progbits13// UNIQUE: .section .rodata.hello,"a",@progbits14