libcxx

libcxx mirror with random patches
git clone https://git.neptards.moe/neptards/libcxx.git
Log | Files | Refs

aligned_union.fail.cpp (560B)


      1 //===----------------------------------------------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 // UNSUPPORTED: c++98, c++03
     11 
     12 // type_traits
     13 
     14 // aligned_union<size_t Len, class ...Types>
     15 
     16 #include <type_traits>
     17 
     18 class A; // Incomplete
     19 
     20 int main()
     21 {
     22     typedef std::aligned_union<10, A>::type T1;
     23 }