xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/arm-metadata.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple armv7a-linux-gnueabi -emit-llvm -o - %s | FileCheck -check-prefix=DEFAULT %s
2*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple armv7a-linux-gnueabi -emit-llvm -o - %s -fshort-enums | FileCheck -check-prefix=SHORT-ENUM %s
3*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple armv7a-linux-gnueabi -emit-llvm -o - %s -fshort-wchar | FileCheck -check-prefix=SHORT-WCHAR %s
4*0a6a1f1dSLionel Sambuc 
5*0a6a1f1dSLionel Sambuc // DEFAULT:  !{{[0-9]+}} = !{i32 1, !"wchar_size", i32 4}
6*0a6a1f1dSLionel Sambuc // DEFAULT:   !{{[0-9]+}} = !{i32 1, !"min_enum_size", i32 4}
7*0a6a1f1dSLionel Sambuc 
8*0a6a1f1dSLionel Sambuc // SHORT-WCHAR: !{{[0-9]+}} = !{i32 1, !"wchar_size", i32 2}
9*0a6a1f1dSLionel Sambuc // SHORT-WCHAR:   !{{[0-9]+}} = !{i32 1, !"min_enum_size", i32 4}
10*0a6a1f1dSLionel Sambuc 
11*0a6a1f1dSLionel Sambuc // SHORT_ENUM:  !{{[0-9]+}} = !{i32 1, !"wchar_size", i32 4}
12*0a6a1f1dSLionel Sambuc // SHORT-ENUM:  !{{[0-9]+}} = !{i32 1, !"min_enum_size", i32 1}
13