a subprocess invocation which is pretty significant on Windows. It also likely saves a bunch of thrashing the host machine needlessly. Finally it makes the tests much more predictable and less dependent on the host. For example 'header_lookup1.c' was passing '-fno-ms-extensions' just to thwart the host detection adding it into the compilation. By runnig CC1 directly we don't have to deal with such oddities. llvm-svn: 199308
6 lines
177 B
C
6 lines
177 B
C
// RUN: echo "#include <stddef.h>" > %t.h
|
|
// RUN: %clang_cc1 -S -g -include %t.h %s -emit-llvm -o %t.ll
|
|
// RUN: grep "i32 5" %t.ll
|
|
// outer is at line number 5.
|
|
int outer = 42;
|