
This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
14 lines
470 B
Plaintext
14 lines
470 B
Plaintext
// RUN: %clang_cc1 -Wno-cuda-compat -Werror %s
|
|
// RUN: %clang_cc1 -Wcuda-compat -verify %s
|
|
// RUN: %clang_cc1 -x c++ -Wcuda-compat -Werror %s
|
|
|
|
// Note that this puts the expected lines before the directives to work around
|
|
// limitations in the -verify mode.
|
|
|
|
void test(int *List, int Length) {
|
|
/* expected-warning {{argument to '#pragma unroll' should not be in parentheses in CUDA C/C++}} */#pragma unroll(4)
|
|
for (int i = 0; i < Length; ++i) {
|
|
List[i] = i;
|
|
}
|
|
}
|