2018-08-21 07:35:45 +08:00
|
|
|
; RUN: opt < %s -mtriple=x86_64-linux -asan -asan-module -asan-globals-live-support=0 -S | FileCheck %s
|
|
|
|
|
|
|
|
$my_var = comdat any
|
|
|
|
|
|
|
|
@my_var = global i32 42, align 4, comdat
|
2018-08-21 08:03:21 +08:00
|
|
|
; CHECK: @my_var = global i32 42, comdat, align 4
|
2018-08-21 07:35:45 +08:00
|
|
|
|
|
|
|
; Don't instrument my_var, it is comdat.
|
2018-08-21 08:03:21 +08:00
|
|
|
; CHECK-NOT: call {{.*}}__asan_register_globals
|