Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / invalid_global_asm.c
blobd5645f7fc92bf442792830986aab093c8d0b17c4
1 // REQUIRES: arm-registered-target
2 // RUN: not %clang_cc1 -emit-obj -triple armv6-unknown-unknown -o %t %s 2>&1 | FileCheck %s
3 // RUN: not %clang_cc1 -emit-obj -triple armv6-unknown-unknown -flto -o %t %s 2>&1 | FileCheck %s
5 /// Test the diagnostic behavior considering the whole system including the driver.
6 // RUN: not %clang --target=armv6-unknown-unknown -c -flto=thin -o %t %s 2>&1 | FileCheck %s
7 #pragma clang diagnostic ignored "-Wmissing-noreturn"
8 __asm__(".Lfoo: movw r2, #:lower16:.Lbar - .Lfoo");
9 // CHECK: <inline asm>:1:8: error: instruction requires: armv6t2
10 // CHECK-NOT: error: