Matthias Braun | a451953 | 2017-05-20 01:29:55 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s -check-prefix=LONG-WCHAR |
| 2 | // RUN: %clang_cc1 -triple x86_64-unknown-windows-msvc -emit-llvm -o - %s | FileCheck %s -check-prefix=SHORT-WCHAR |
Saleem Abdulrasool | 729379a | 2017-10-06 23:09:55 +0000 | [diff] [blame] | 3 | // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -o - -fwchar-type=short -fno-signed-wchar %s | FileCheck %s -check-prefix=SHORT-WCHAR |
Matthias Braun | a451953 | 2017-05-20 01:29:55 +0000 | [diff] [blame] | 4 | // Note: -fno-short-wchar implies the target default is used; so there is no |
| 5 | // need to test this separately here. |
| 6 | |
| 7 | // LONG-WCHAR: !{{[0-9]+}} = !{i32 {{[0-9]+}}, !"wchar_size", i32 4} |
| 8 | // SHORT-WCHAR: !{{[0-9]+}} = !{i32 {{[0-9]+}}, !"wchar_size", i32 2} |