[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaCXX / type-traits-nonobject.cpp
blob5f7c20cc2e11c3622cd886ba3247ab628cd84645
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++20 %s
4 // expected-no-diagnostics
6 static_assert(!__is_pod(void), "");
7 static_assert(!__is_pod(int&), "");
8 static_assert(!__is_pod(int()), "");
9 static_assert(!__is_pod(int()&), "");
11 static_assert(!__is_trivially_copyable(void), "");
12 static_assert(!__is_trivially_copyable(int&), "");
13 static_assert(!__is_trivially_copyable(int()), "");
14 static_assert(!__is_trivially_copyable(int()&), "");
16 static_assert(!__is_trivially_relocatable(void), "");
17 static_assert(!__is_trivially_relocatable(int&), "");
18 static_assert(!__is_trivially_relocatable(int()), "");
19 static_assert(!__is_trivially_relocatable(int()&), "");