This may be a breaking change for consumers if they're trying to detect if code is C or C++, since it'll start using new codes that they may not be ready to recognize, in which case they may fall back to non-C handling. This caused regressions due to PS4 having a different default for C language version than other targets. Those tests were adapted to be relaxed about which C version is used. This reapplies commit3c312e48f3Which was reverted by commit6ab6085c77. Differential Revision: https://reviews.llvm.org/D138597
12 lines
372 B
OpenEdge ABL
12 lines
372 B
OpenEdge ABL
# 1 "/foo/bar/preprocessed-input.c"
|
|
# 1 "<built-in>" 1
|
|
# 1 "<built-in>" 3
|
|
# 318 "<built-in>" 3
|
|
# 1 "<command line>" 1
|
|
# 1 "<built-in>" 2
|
|
# 1 "preprocessed-input.c" 2
|
|
|
|
// RUN: %clang -g -c -S -emit-llvm -o - %s | FileCheck %s
|
|
// CHECK: !DICompileUnit(language: DW_LANG_C{{.*}}, file: ![[FILE:[0-9]+]]
|
|
// CHECK: ![[FILE]] = !DIFile(filename: "/foo/bar/preprocessed-input.c"
|