aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/instantiate-expr-1.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/SemaTemplate/instantiate-expr-1.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/SemaTemplate/instantiate-expr-1.cpp')
-rw-r--r--test/SemaTemplate/instantiate-expr-1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaTemplate/instantiate-expr-1.cpp b/test/SemaTemplate/instantiate-expr-1.cpp
index 9395117e9c..e777243586 100644
--- a/test/SemaTemplate/instantiate-expr-1.cpp
+++ b/test/SemaTemplate/instantiate-expr-1.cpp
@@ -127,7 +127,7 @@ void test_call_operator(CallOperator call_op, int i, double d) {
template<typename T>
void test_asm(T t) {
- asm ("nop" : "=a"(*t) : "r"(*t)); // expected-error {{indirection requires pointer operand ('int' invalid)}}
+ asm ("nop" : "=r"(*t) : "r"(*t)); // expected-error {{indirection requires pointer operand ('int' invalid)}}
}
void test_asm() {