1 // Verify that the only debuginfo generated are the line tables. 2 // 3 // compile-flags: -C debuginfo=line-tables-only 4 5 #[repr(C)] 6 struct StructType { 7 a: i64, 8 b: i32, 9 } 10 11 extern "C" { creator() -> *mut StructType12 fn creator() -> *mut StructType; save(p: *const StructType)13 fn save(p: *const StructType); 14 } 15 main()16fn main() { 17 unsafe { 18 let value: &mut StructType = &mut *creator(); 19 value.a = 7; 20 save(value as *const StructType) 21 } 22 } 23 24 // CHECK: !DICompileUnit 25 // CHECK: emissionKind: LineTablesOnly 26 // CHECK: !DILocation 27 // CHECK-NOT: !DIBasicType 28