Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / SemaCXX / GH82167.cpp
blob033331b82c5d442244fefde0e7d474fe7aff7df6
1 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=c++23 -fsyntax-only -verify -xobjective-c++ %s
2 // expected-no-diagnostics
4 namespace t1 {
5 struct array {
6 char elems[2];
7 };
9 template <unsigned> struct Literal {
10 array arr;
11 constexpr Literal() : arr("") {}
14 template struct Literal<0>;
15 } // namespace t1
17 namespace t2 {
18 struct array {
19 char elems[2];
22 template <unsigned> struct Literal {
23 array arr;
24 constexpr Literal() : arr(@encode(int)) {}
27 template struct Literal<0>;
28 } // namespace t2