
MSVC always emits minimal CodeView metadata with compiler information, even when debug info is otherwise disabled. Other tools may rely on this metadata being present. For example, linkers use it to determine whether hotpatching is enabled for the object file.
9 lines
295 B
C
9 lines
295 B
C
// RUN: env SDKROOT="/" %clang -emit-llvm -S -o - -x c - < %s | grep -v DIFile > %t1.ll
|
|
// RUN: env SDKROOT="/" %clang -emit-ast -o %t.ast %s
|
|
// RUN: env SDKROOT="/" %clang -emit-llvm -S -o - -x ast - < %t.ast | grep -v DIFile > %t2.ll
|
|
// RUN: diff %t1.ll %t2.ll
|
|
|
|
int main(void) {
|
|
return 0;
|
|
}
|