From 7442d6faa2719e4e7d33a7021c406c5a4facd74d Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 16 Apr 2017 16:02:28 +0000 Subject: Vendor import of clang trunk r300422: https://llvm.org/svn/llvm-project/cfe/trunk@300422 --- test/ASTMerge/asm/Inputs/asm-function.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/ASTMerge/asm/Inputs/asm-function.cpp') diff --git a/test/ASTMerge/asm/Inputs/asm-function.cpp b/test/ASTMerge/asm/Inputs/asm-function.cpp index 59c4edfbcd251..1b8783354fceb 100644 --- a/test/ASTMerge/asm/Inputs/asm-function.cpp +++ b/test/ASTMerge/asm/Inputs/asm-function.cpp @@ -9,3 +9,13 @@ unsigned char asmFunc(unsigned char a, unsigned char b) { res = bigres; return res; } + +int asmFunc2(int i) { + int res; + asm ("mov %1, %0 \t\n" + "inc %0 " + : "=r" (res) + : "r" (i) + : "cc"); + return res; +} -- cgit v1.2.3