xref: /llvm-project/clang/test/Modules/gmodules-nodebug.cpp (revision 30e276d06d3176f145151cea96ab01af0c3e842a)
1*30e276d0SMichael Buch // REQUIRES: asserts
2*30e276d0SMichael Buch 
3*30e276d0SMichael Buch // RUN: %clang_cc1 -std=c++23 -x c++-header -emit-pch -fmodule-format=obj \
4*30e276d0SMichael Buch // RUN:   -o %t.pch %s \
5*30e276d0SMichael Buch // RUN:   -mllvm -debug-only=pchcontainer &>%t-pch.ll
6*30e276d0SMichael Buch // RUN: cat %t-pch.ll | FileCheck %s
7*30e276d0SMichael Buch 
8*30e276d0SMichael Buch template<class...>
9*30e276d0SMichael Buch using __void_t [[gnu::nodebug]] = void;
10*30e276d0SMichael Buch 
11*30e276d0SMichael Buch __void_t<> func() {}
12*30e276d0SMichael Buch 
13*30e276d0SMichael Buch // CHECK: !DICompileUnit
14*30e276d0SMichael Buch // CHECK-NOT: __void_t
15