[mips] Add test case to check ABI flag emissions in case of inline assembler

Follow up to r247546. The test case reproduces the problem fixed by this commit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247548 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Simon Atanasyan 2015-09-14 11:23:02 +00:00
parent 592b43b609
commit ac5d12bb0c
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
// REQUIRES: mips-registered-target
// RUN: %clang_cc1 -triple mips-linux-gnu -emit-obj -o - %s | \
// RUN: llvm-readobj -h - | FileCheck %s
// CHECK: EF_MIPS_ABI_O32
__asm__(
"bar:\n"
" nop\n"
);
void foo() {}