1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
---|---|
2 | // expected-no-diagnostics |
3 | |
4 | struct S { |
5 | static const int f0 = 0; |
6 | static int f1; |
7 | }; |
8 | |
9 | int S::f1 = f0; |
10 |
1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
---|---|
2 | // expected-no-diagnostics |
3 | |
4 | struct S { |
5 | static const int f0 = 0; |
6 | static int f1; |
7 | }; |
8 | |
9 | int S::f1 = f0; |
10 |