Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:51

0001 
0002 #include <string>
0003 
0004 // is ok, because const-qualified
0005 const static int g_staticConst = 23;
0006 static int const& g_ref_staticConst = g_staticConst;
0007 static int const* g_ptr_staticConst = &g_staticConst;
0008 
0009 
0010 // results in a warning by GlobalStaticChecker
0011 static int g_static;
0012 static int * g_ptr_static = &g_static;
0013 
0014 
0015 int main()
0016 {
0017     g_static = 23;
0018 
0019     return 0;
0020 }