Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / utils / update_cc_test_checks / Inputs / generated-funcs.c
blobc40759aeaacffebd9369a3a326384c320138ea1d
1 // Check that the CHECK lines are generated for clang-generated functions
2 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fopenmp %s -emit-llvm -o - | FileCheck --check-prefix=OMP %s
3 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu %s -emit-llvm -o - | FileCheck --check-prefix=NOOMP %s
5 const int size = 1024 * 1024 * 32;
7 double A[size];
9 void foo(void);
11 int main(void) {
12 int i = 0;
14 #pragma omp parallel for
15 for (i = 0; i < size; ++i) {
16 A[i] = 0.0;
19 foo();
21 return 0;
24 void foo(void) {
25 int i = 0;
27 #pragma omp parallel for
28 for (i = 0; i < size; ++i) {
29 A[i] = 1.0;