aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/nullptr.cpp
diff options
context:
space:
mode:
authorSimon Atanasyan <satanasyan@mips.com>2012-05-22 11:03:10 +0000
committerSimon Atanasyan <satanasyan@mips.com>2012-05-22 11:03:10 +0000
commitd95e95ec5300249f5b7c6f1b72bde59e5141069c (patch)
treecffe148df2934dd41712e9d44c6926d179bc725f /test/Analysis/nullptr.cpp
parent0e5e092228495c9524ba6fa9b49f116a0c1bbe55 (diff)
Replace inline asm constraint "=a" by the more general constraint "=r".
That extend a range of platforms support this test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157247 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/nullptr.cpp')
-rw-r--r--test/Analysis/nullptr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Analysis/nullptr.cpp b/test/Analysis/nullptr.cpp
index 3119b4fc39..050c3f8dc5 100644
--- a/test/Analysis/nullptr.cpp
+++ b/test/Analysis/nullptr.cpp
@@ -55,7 +55,7 @@ void zoo2() {
int **a = 0;
int **b = 0;
asm ("nop"
- :"=a"(*a)
+ :"=r"(*a)
:"0"(*b) // expected-warning{{Dereference of null pointer}}
);
}