Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / funique-sections.c
blobe24d13c0a465bfb42e22b11ebdf586351053b329
1 // REQUIRES: x86-registered-target
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
6 const int hello = 123;
7 void world(void) {}
9 // CHECK: .section .text,"ax",@progbits,unique
10 // CHECK: .section .rodata,"a",@progbits,unique
12 // UNIQUE: .section .text.world,"ax",@progbits
13 // UNIQUE: .section .rodata.hello,"a",@progbits