blob: 73e98ea68c7ba2faebba6eb06d9db042ecb4a80e [file] [edit]
// Test without PCH
// RUN: %clang_cc1 -std=c++26 -freflection %s -include %S/reflection_include.h -fsyntax-only -verify
// RUN: %clang_cc1 -std=c++26 -freflection -x c++-header %S/reflection_include.h -emit-pch -o %t
// RUN: %clang_cc1 -std=c++26 -freflection -include-pch %t -verify %s
// expected-no-diagnostics
static_assert(^^int == ^^int);
static_assert(^^int != ^^double);
static_assert(info{} != ^^int);
static_assert(__is_same(decltype(^^int), info));
static_assert(__is_same(decltype(^^double), info));