diff options
-rw-r--r-- | clang/test/Analysis/nullptr.cpp | 2 | ||||
-rw-r--r-- | clang/test/SemaTemplate/instantiate-expr-1.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Analysis/nullptr.cpp b/clang/test/Analysis/nullptr.cpp index 3119b4fc390..050c3f8dc56 100644 --- a/clang/test/Analysis/nullptr.cpp +++ b/clang/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}} ); } diff --git a/clang/test/SemaTemplate/instantiate-expr-1.cpp b/clang/test/SemaTemplate/instantiate-expr-1.cpp index 9395117e9ce..e7772435865 100644 --- a/clang/test/SemaTemplate/instantiate-expr-1.cpp +++ b/clang/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() { |