[RISCV] Add RVVConstraint to SiFive custom matrix multiply instructions. (#124055)
[llvm-project.git] / compiler-rt / test / asan / TestCases / Posix / lto-constmerge-odr.cpp
blob1370b5a8b1362dfa7ac311c9df54839f8c007600
1 /// Instrumented globals are added to llvm.compiler.used, so LTO will not const
2 /// merge them (which will cause spurious ODR violation).
3 // RUN: %clangxx_asan -O3 -fuse-ld=lld -flto %s -o %t
4 // RUN: %run %t 2>&1
6 // REQUIRES: lld-available, lto
8 int main(int argc, const char * argv[]) {
9 struct { long width, height; } a = {16, 16};
10 struct { long width, height; } b = {16, 16};
12 // Just to make sure 'a' and 'b' don't get optimized out.
13 asm volatile("" : : "r" (&a), "r" (&b));
15 return 0;