xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/dwarf-version.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang -target x86_64-linux-gnu -gdwarf-2 -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER2
2f4a2713aSLionel Sambuc // RUN: %clang -target x86_64-linux-gnu -gdwarf-3 -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER3
3f4a2713aSLionel Sambuc // RUN: %clang -target x86_64-linux-gnu -gdwarf-4 -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER4
4*0a6a1f1dSLionel Sambuc // RUN: %clang -target x86_64-linux-gnu -g -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER4
5*0a6a1f1dSLionel Sambuc // RUN: %clang -target x86_64-apple-darwin -g -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER2
6*0a6a1f1dSLionel Sambuc // RUN: %clang -target powerpc-unknown-openbsd -g -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER2
7*0a6a1f1dSLionel Sambuc // RUN: %clang -target powerpc-unknown-freebsd -g -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER2
8*0a6a1f1dSLionel Sambuc // RUN: %clang -target i386-pc-solaris -g -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER2
main(void)9f4a2713aSLionel Sambuc int main (void) {
10f4a2713aSLionel Sambuc   return 0;
11f4a2713aSLionel Sambuc }
12f4a2713aSLionel Sambuc 
13*0a6a1f1dSLionel Sambuc // VER2: !{i32 2, !"Dwarf Version", i32 2}
14*0a6a1f1dSLionel Sambuc // VER3: !{i32 2, !"Dwarf Version", i32 3}
15*0a6a1f1dSLionel Sambuc // VER4: !{i32 2, !"Dwarf Version", i32 4}
16