mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-03 00:16:05 +00:00

location data is available. If pragma handling wants to look up the position, it finds the LLVM buffer and wants to compare it with the special built-in buffer, failing badly. Extend to the special handling of the built-in buffer to also check for the inline asm buffer. Expect only a single asm buffer. Sort it between the built-in buffers and the normal file buffers. Fixes the assert part of PR 22576. llvm-svn: 232389
6 lines
298 B
C
6 lines
298 B
C
// REQUIRES: arm-registered-target
|
|
// RUN: not %clang_cc1 -emit-obj -triple armv6-unknown-unknown -o %t %s 2>&1 | FileCheck %s
|
|
#pragma clang diagnostic ignored "-Wmissing-noreturn"
|
|
__asm__(".Lfoo: movw r2, #:lower16:.Lbar - .Lfoo");
|
|
// CHECK: <inline asm>:1:8: error: instruction requires: armv6t2
|