Files
impala/testdata/llvm/test-loop.cc

18 lines
394 B
C++

// Copyright (c) 2012 Cloudera, Inc. All right reserved.
// This is a test-only file. It was used to generate test-loop.ir
// which is used by the unit test to exercise loading precompiled
// ir.
#include <stdio.h>
__attribute__ ((noinline)) void DefaultImplementation() {
printf("Default\n");
}
void TestLoop(int n) {
for (int i = 0; i < n; ++i) {
DefaultImplementation();
}
}