2013-06-19 09:46:49 +08:00
|
|
|
// RUN: %clang -target x86_64-linux-gnu -gdwarf-2 -S -emit-llvm -o - %s | FileCheck %s
|
|
|
|
// RUN: %clang -target x86_64-linux-gnu -gdwarf-3 -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER3
|
|
|
|
// RUN: %clang -target x86_64-linux-gnu -gdwarf-4 -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER4
|
2013-07-03 07:15:25 +08:00
|
|
|
// RUN: %clang -target x86_64-linux-gnu -g -S -emit-llvm -o - %s | FileCheck %s --check-prefix=LINUX
|
|
|
|
// RUN: %clang -target x86_64-apple-darwin -g -S -emit-llvm -o - %s | FileCheck %s --check-prefix=DARWIN
|
2013-06-19 09:46:49 +08:00
|
|
|
int main (void) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// CHECK: metadata !{i32 2, metadata !"Dwarf Version", i32 2}
|
|
|
|
// VER3: metadata !{i32 2, metadata !"Dwarf Version", i32 3}
|
|
|
|
// VER4: metadata !{i32 2, metadata !"Dwarf Version", i32 4}
|
2013-09-04 00:10:12 +08:00
|
|
|
// LINUX: metadata !{i32 2, metadata !"Dwarf Version", i32 4}
|
2014-02-18 01:40:52 +08:00
|
|
|
// DARWIN: metadata !{i32 2, metadata !"Dwarf Version", i32 2}
|