summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2018-06-21 23:52:36 +0000
committerChandler Carruth <chandlerc@gmail.com>2018-06-21 23:52:36 +0000
commitf34ffd58d98d301f9802cb63267f16a4e5ffa7b3 (patch)
treeeea5ca45f98594152e130d23cce3886f4ce2c9ce /clang/test
parent16e6bc23a12ecaee8b2eeb6a4246843ce24e751c (diff)
downloadbcm5719-llvm-f34ffd58d98d301f9802cb63267f16a4e5ffa7b3.tar.gz
bcm5719-llvm-f34ffd58d98d301f9802cb63267f16a4e5ffa7b3.zip
[x86] Fix a tiny bug in my test case in r335309 by marking that we don't
expect any diagnostics. llvm-svn: 335310
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Sema/builtins-x86.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Sema/builtins-x86.cpp b/clang/test/Sema/builtins-x86.cpp
index d6c03a89994..0f37f4a3464 100644
--- a/clang/test/Sema/builtins-x86.cpp
+++ b/clang/test/Sema/builtins-x86.cpp
@@ -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);
OpenPOWER on IntegriCloud