view gcc/testsuite/g++.dg/cpp0x/constexpr-60199.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

// PR c++/60199
// { dg-do compile { target c++11 } }

void f() {}

static constexpr void (*g1)() = &f;
static constexpr void (*g2)() = f;
struct S {
    static constexpr void (*g3)() = &f;
    static constexpr void (*g4)() = f;
};