Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/lookup/extern-c-static1.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line source
// PR c++/93643 void* callback(const char* name); extern "C" { inline void f1() { static void (*f)(); f = (void(*)()) callback("f1"); f(); } inline void f2() { static void (*f)(); f = (void(*)()) callback("f2"); f(); } } // extern "C" int main() { f1(); f2(); }