- Turned off -count-only tests as they aren't supported in cpp11-migrate yet. - Updated tests to use new binary name and options to access loop-convert transform. - Fixed header guards to not use restricted names. Reviewers: klimek, gribozavr llvm-svn: 171852
15 lines
316 B
C
15 lines
316 B
C
#ifndef NEGATIVE_HEADER_H
|
|
#define NEGATIVE_HEADER_H
|
|
|
|
// Single FileCheck line to make sure that no loops are converted.
|
|
// CHECK-NOT: for ({{.*[^:]:[^:].*}})
|
|
static void loopInHeader() {
|
|
const int N = 10;
|
|
int arr[N];
|
|
int sum = 0;
|
|
for (int i = 0; i < N; ++i)
|
|
sum += arr[i];
|
|
}
|
|
|
|
#endif // NEGATIVE_HEADER_H
|