summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/pragma-loop.cpp
diff options
context:
space:
mode:
authorTyler Nowicki <tyler.nowicki@gmail.com>2015-06-08 23:13:43 +0000
committerTyler Nowicki <tyler.nowicki@gmail.com>2015-06-08 23:13:43 +0000
commit24853c123adff6c4ec6546a135979483a538d00b (patch)
tree2a8b5864ac3dd35ff80e30343191008638409d06 /clang/test/Parser/pragma-loop.cpp
parent90203dc85535e95da5ab367448cdbce55c15bc5a (diff)
downloadbcm5719-llvm-24853c123adff6c4ec6546a135979483a538d00b.tar.gz
bcm5719-llvm-24853c123adff6c4ec6546a135979483a538d00b.zip
Correct Loop Hint Diagnostic Message
When pragma clang loop unroll() is specified without an argument the diagnostic message should inform that user that 'full' and 'disable' are valid arguments (not 'enable'). llvm-svn: 239363
Diffstat (limited to 'clang/test/Parser/pragma-loop.cpp')
-rw-r--r--clang/test/Parser/pragma-loop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Parser/pragma-loop.cpp b/clang/test/Parser/pragma-loop.cpp
index 547d87395ef..a0213ac50d5 100644
--- a/clang/test/Parser/pragma-loop.cpp
+++ b/clang/test/Parser/pragma-loop.cpp
@@ -132,7 +132,7 @@ void test(int *List, int Length) {
/* expected-error {{missing argument; expected 'enable' or 'disable'}} */ #pragma clang loop vectorize()
/* expected-error {{missing argument; expected an integer value}} */ #pragma clang loop interleave_count()
-/* expected-error {{missing argument; expected 'enable' or 'disable'}} */ #pragma clang loop unroll()
+/* expected-error {{missing argument; expected 'full' or 'disable'}} */ #pragma clang loop unroll()
/* expected-error {{missing option; expected vectorize, vectorize_width, interleave, interleave_count, unroll, or unroll_count}} */ #pragma clang loop
/* expected-error {{invalid option 'badkeyword'}} */ #pragma clang loop badkeyword
OpenPOWER on IntegriCloud