llvm-for-llvmta/tools/clang/test/Frontend/stdin-input.c

8 lines
254 B
C
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: cat %s | %clang -emit-llvm -g -S \
// RUN: -Xclang -main-file-name -Xclang test/foo.c -x c - -o - | FileCheck %s
// CHECK: ; ModuleID = 'test/foo.c'
// CHECK: source_filename = "test/foo.c"
// CHECK: !DIFile(filename: "test/foo.c"
int main() {}