summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2013-07-03 15:32:48 +0000
committerSerge Pavlov <sepavloff@gmail.com>2013-07-03 15:32:48 +0000
commitf432f857771bc91313f0c682017d5f8e7f28d499 (patch)
tree7723a86a681ab826b8177d48dd65dbd89b6f2bbe
parent47e9328afe3d8b59aba612185618d6052bd0a8ed (diff)
downloadbcm5719-llvm-f432f857771bc91313f0c682017d5f8e7f28d499.tar.gz
bcm5719-llvm-f432f857771bc91313f0c682017d5f8e7f28d499.zip
Test case for PR7887 - failed with asm("")
llvm-svn: 185543
-rw-r--r--clang/test/CodeGen/asm-label.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGen/asm-label.c b/clang/test/CodeGen/asm-label.c
index c06f11fd2d2..f944d368f8b 100644
--- a/clang/test/CodeGen/asm-label.c
+++ b/clang/test/CodeGen/asm-label.c
@@ -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;
+}
OpenPOWER on IntegriCloud