diff options
Diffstat (limited to 'test/Parser/pragma-unroll.cpp')
-rw-r--r-- | test/Parser/pragma-unroll.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Parser/pragma-unroll.cpp b/test/Parser/pragma-unroll.cpp index 2609457..b1d7798 100644 --- a/test/Parser/pragma-unroll.cpp +++ b/test/Parser/pragma-unroll.cpp @@ -67,6 +67,12 @@ void test(int *List, int Length) { List[i] = i; } +/* expected-error {{incompatible directives 'unroll(enable)' and '#pragma unroll(4)'}} */ #pragma unroll(4) +#pragma clang loop unroll(enable) + while (i-11 < Length) { + List[i] = i; + } + /* expected-error {{incompatible directives '#pragma unroll' and '#pragma unroll(4)'}} */ #pragma unroll(4) #pragma unroll while (i-11 < Length) { |