brintos

brintos / llvm-project-archived public Read only

0
0
Text · 739 B · 9c7a0d2 Raw
10 lines · cpp
1// Test that on Linux asan constructor is placed in a comdat iff globals-gc is on.2// Even if there are no globals in the module.3 4// RUN: %clang_cc1 -fsanitize=address -fsanitize-address-globals-dead-stripping -emit-llvm -o - -triple x86_64-linux %s | FileCheck %s --check-prefix=WITH-GC5// RUN: %clang_cc1 -fsanitize=address -fsanitize-address-globals-dead-stripping -fno-integrated-as -emit-llvm -o - -triple x86_64-linux %s | FileCheck %s --check-prefix=WITHOUT-GC6// RUN: %clang_cc1 -fsanitize=address -fdata-sections -emit-llvm -o - -triple x86_64-linux %s | FileCheck %s --check-prefix=WITHOUT-GC7 8// WITH-GC: define internal void @asan.module_ctor() #[[#]] comdat {9// WITHOUT-GC: define internal void @asan.module_ctor() #[[#]] {10