19 lines · plain
1// RUN: fir-opt --add-debug-info --mlir-print-debuginfo %s | FileCheck %s2 3module {4 fir.global linkonce_odr @_QFEXnXxcx constant target : !fir.char<1,3> {5 %0 = fir.string_lit "xcx"(3) : !fir.char<1,3>6 fir.has_value %0 : !fir.char<1,3>7 } loc(#loc1)8 fir.global linkonce_odr @_QFEXnXxdtx constant target : !fir.char<1,4> {9 %0 = fir.string_lit "xdtx"(4) : !fir.char<1,4>10 fir.has_value %0 : !fir.char<1,4>11 } loc(#loc1)12}13#loc1 = loc("derived.f90":24:1)14 15// Test that no di_global_variable gets created for these compile generated16// globals.17 18// CHECK-NOT: #di_global_variable19