Test case for PR7887 - failed with asm("")

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185543 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Serge Pavlov 2013-07-03 15:32:48 +00:00
parent 766633416d
commit 9c4e77075c
1 changed files with 12 additions and 0 deletions

View File

@ -17,3 +17,15 @@ int *test(void) {
// DARWIN: @"\01bar" = internal global i32 0
// DARWIN: @"\01foo" = common global i32 0
// DARWIN: declare i8* @"\01alias"(i32)
// PR7887
int pr7887_1 asm("");
extern int pr7887_2 asm("");
int pr7887_3 () asm("");
int pt7887_4 () {
static int y asm("");
y = pr7887_3();
pr7887_2 = 1;
return pr7887_1;
}