repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* c-common.c (catenate_strings): New.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
const2.C
blob
b6aa6d4a7d74187625c5fea29137d1a0274ae3ef
1
// { dg-do run }
2
// Example of static member constants
3
4
extern "C" int printf (const char *, ...);
5
6
struct T {
7
static const char letter = 'a'; // this is the new stuff!
8
char x[letter];
9
void f();
10
};
11
12
void T::f() { printf ("%p", &letter); }
13
const char T::letter; // still need def after class
14
15
int main() { }