From eea34fb22d9d45ce80edf9879aa2e063bd0ddd85 Mon Sep 17 00:00:00 2001 From: Kuba Mracek Date: Thu, 8 Mar 2018 23:53:29 +0000 Subject: Move lto-constmerge-odr.cc to Posix (it's failing on Windows). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@327080 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/asan/TestCases/Posix/lto-constmerge-odr.cc | 14 ++++++++++++++ test/asan/TestCases/lto-constmerge-odr.cc | 14 -------------- 2 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 test/asan/TestCases/Posix/lto-constmerge-odr.cc delete mode 100644 test/asan/TestCases/lto-constmerge-odr.cc (limited to 'test/asan/TestCases') diff --git a/test/asan/TestCases/Posix/lto-constmerge-odr.cc b/test/asan/TestCases/Posix/lto-constmerge-odr.cc new file mode 100644 index 000000000..9dc1397f6 --- /dev/null +++ b/test/asan/TestCases/Posix/lto-constmerge-odr.cc @@ -0,0 +1,14 @@ +// RUN: %clangxx_asan -O3 -flto %s -o %t +// RUN: %run %t 2>&1 + +// REQUIRES: lto + +int main(int argc, const char * argv[]) { + struct { long width, height; } a = {16, 16}; + struct { long width, height; } b = {16, 16}; + + // Just to make sure 'a' and 'b' don't get optimized out. + asm volatile("" : : "r" (&a), "r" (&b)); + + return 0; +} diff --git a/test/asan/TestCases/lto-constmerge-odr.cc b/test/asan/TestCases/lto-constmerge-odr.cc deleted file mode 100644 index 9dc1397f6..000000000 --- a/test/asan/TestCases/lto-constmerge-odr.cc +++ /dev/null @@ -1,14 +0,0 @@ -// RUN: %clangxx_asan -O3 -flto %s -o %t -// RUN: %run %t 2>&1 - -// REQUIRES: lto - -int main(int argc, const char * argv[]) { - struct { long width, height; } a = {16, 16}; - struct { long width, height; } b = {16, 16}; - - // Just to make sure 'a' and 'b' don't get optimized out. - asm volatile("" : : "r" (&a), "r" (&b)); - - return 0; -} -- cgit v1.2.3