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