1 // RUN: %clang_cc1 -std=c++17 -emit-llvm -fchar8_t -triple x86_64-linux %s -o - | FileCheck %s
2 // RUN: %clang_cc1 -std=c++17 -emit-llvm -fchar8_t -triple x86_64-windows %s -o - -verify
3 
4 // CHECK: define void @_Z1fDu(
5 void f(char8_t c) {} // expected-error {{cannot mangle this built-in char8_t type yet}}
6 
7 // CHECK: define weak_odr void @_Z1gIiEvDTplplcvT__ELA4_KDuELDu114EE
8 template<typename T> void g(decltype(T() + u8"foo" + u8'r')) {}
9 template void g<int>(const char8_t*);
10