Files
clang-p2996/clang/test/AST/Interp/comma.cpp
Timm Bäder a2535a5786 [clang][Interp] Remove assertion to fix comma operators...
... involving function pointers on the RHS. The conversion to
an RValue _can_ be requested, but we just ignore it.
2024-02-19 11:16:35 +01:00

11 lines
241 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: %clang_cc1 -fsyntax-only -verify %s -fexperimental-new-constant-interpreter
// expected-no-diagnostics
// PR6076
void f();
void (&g)() = (void(), f);
int a[1];
int (&b)[1] = (void(), a);