1a2abe225SGiorgis Georgakoudis// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
2a2abe225SGiorgis Georgakoudis// Check that the non-clang/non-filechecked runlines execute
3062b1ae7SNikita Popov// RUN: cp %s %S/../Output/execute-all-runlines.copy.c
4062b1ae7SNikita Popov// RUN: cp %S/../Output/execute-all-runlines.copy.c %s.copy.c
5*b16a3b4fSNikita Popov// RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-unknown-linux-gnu -fopenmp %s.copy.c -emit-llvm-bc -o %t-host.bc
6*b16a3b4fSNikita Popov// RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-unknown-linux-gnu -fopenmp -fopenmp-host-ir-file-path %t-host.bc %s.copy.c -emit-llvm -o - | FileCheck %s --check-prefix=CHECK1
7*b16a3b4fSNikita Popov// RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-unknown-linux-gnu -emit-pch %s -o %t
8*b16a3b4fSNikita Popov// RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-unknown-linux-gnu -include-pch %t %s.copy.c -emit-llvm -o - | FileCheck %s --check-prefix=CHECK2
9*b16a3b4fSNikita Popov// RUN: %clang_cc1 -no-opaque-pointers -triple powerpc64le-unknown-linux-gnu -emit-pch %s -o %t
10*b16a3b4fSNikita Popov// RUN: %clang_cc1 -no-opaque-pointers -triple powerpc64le-unknown-linux-gnu -include-pch %t %s.copy.c -emit-llvm -o - | FileCheck %s --check-prefix=CHECK3
1192f2c39fSGiorgis Georgakoudis
1292f2c39fSGiorgis Georgakoudis
1392f2c39fSGiorgis Georgakoudis#ifndef HEADER
1492f2c39fSGiorgis Georgakoudis#define HEADER
15a2abe225SGiorgis Georgakoudis
16a2abe225SGiorgis Georgakoudisvoid use(int);
17a2abe225SGiorgis Georgakoudis
1892f2c39fSGiorgis Georgakoudis// CHECK1-LABEL: @test(
1992f2c39fSGiorgis Georgakoudis// CHECK1-NEXT:  entry:
2092f2c39fSGiorgis Georgakoudis// CHECK1-NEXT:    [[A_ADDR:%.*]] = alloca i32, align 4
2192f2c39fSGiorgis Georgakoudis// CHECK1-NEXT:    store i32 [[A:%.*]], i32* [[A_ADDR]], align 4
2292f2c39fSGiorgis Georgakoudis// CHECK1-NEXT:    ret void
2392f2c39fSGiorgis Georgakoudis//
2492f2c39fSGiorgis Georgakoudis// CHECK2-LABEL: @test(
2592f2c39fSGiorgis Georgakoudis// CHECK2-NEXT:  entry:
2692f2c39fSGiorgis Georgakoudis// CHECK2-NEXT:    [[A_ADDR:%.*]] = alloca i32, align 4
2792f2c39fSGiorgis Georgakoudis// CHECK2-NEXT:    store i32 [[A:%.*]], i32* [[A_ADDR]], align 4
2892f2c39fSGiorgis Georgakoudis// CHECK2-NEXT:    ret void
2992f2c39fSGiorgis Georgakoudis//
3092f2c39fSGiorgis Georgakoudis// CHECK3-LABEL: @test(
3192f2c39fSGiorgis Georgakoudis// CHECK3-NEXT:  entry:
3292f2c39fSGiorgis Georgakoudis// CHECK3-NEXT:    [[A_ADDR:%.*]] = alloca i32, align 4
3392f2c39fSGiorgis Georgakoudis// CHECK3-NEXT:    store i32 [[A:%.*]], i32* [[A_ADDR]], align 4
3492f2c39fSGiorgis Georgakoudis// CHECK3-NEXT:    ret void
35a2abe225SGiorgis Georgakoudis//
36a2abe225SGiorgis Georgakoudisvoid test(int a)
37a2abe225SGiorgis Georgakoudis{
38a2abe225SGiorgis Georgakoudis}
3992f2c39fSGiorgis Georgakoudis
4092f2c39fSGiorgis Georgakoudis#endif
41