r335310 - [x86] Fix a tiny bug in my test case in r335309 by marking that we don't

Chandler Carruth via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 21 16:52:37 PDT 2018


Author: chandlerc
Date: Thu Jun 21 16:52:36 2018
New Revision: 335310

URL: http://llvm.org/viewvc/llvm-project?rev=335310&view=rev
Log:
[x86] Fix a tiny bug in my test case in r335309 by marking that we don't
expect any diagnostics.

Modified:
    cfe/trunk/test/Sema/builtins-x86.cpp

Modified: cfe/trunk/test/Sema/builtins-x86.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/builtins-x86.cpp?rev=335310&r1=335309&r2=335310&view=diff
==============================================================================
--- cfe/trunk/test/Sema/builtins-x86.cpp (original)
+++ cfe/trunk/test/Sema/builtins-x86.cpp Thu Jun 21 16:52:36 2018
@@ -2,6 +2,7 @@
 //
 // Ensure that when we use builtins in C++ code with templates that compute the
 // valid immediate, the dead code with the invalid immediate doesn't error.
+// expected-no-diagnostics
 
 typedef short __v8hi __attribute__((__vector_size__(16)));
 
@@ -20,4 +21,4 @@ template __v8hi test<3>(__v8hi);
 template __v8hi test<4>(__v8hi);
 template __v8hi test<5>(__v8hi);
 template __v8hi test<6>(__v8hi);
-template __v8hi test<7>(__v8hi);
\ No newline at end of file
+template __v8hi test<7>(__v8hi);




More information about the cfe-commits mailing list