Use a test file that's actually valid C++.

[SVN r52348]
This commit is contained in:
Daniel James 2009-04-12 10:50:31 +00:00
parent dcf599b7d7
commit 41398d1414

View File

@ -1,15 +1,15 @@
int global_integer; int global_integer;
static int global_static_integer; static int global_static_integer;
const int global_const_integer; const int global_const_integer = 1;
static const int global_static_const_integer; static const int global_static_const_integer = 2;
enum global_enum { enumerator }; enum global_enum { enumerator };
namespace example namespace example
{ {
int namespace_integer; int namespace_integer;
static int namespace_static_integer; static int namespace_static_integer;
const int namespace_const_integer; const int namespace_const_integer = 1;
static const int namespace_static_const_integer; static const int namespace_static_const_integer = 2;
enum namespace_enum { enumerator }; enum namespace_enum { enumerator };
class example class example
@ -19,7 +19,6 @@ namespace example
static int static_integer; static int static_integer;
mutable int mutable_integer; mutable int mutable_integer;
const int const_integer; const int const_integer;
static mutable int static_mutable_integer;
static const int static_const_integer; static const int static_const_integer;
enum class_enum { enumerator }; enum class_enum { enumerator };
@ -28,19 +27,17 @@ namespace example
static int protected_static_integer; static int protected_static_integer;
mutable int protected_mutable_integer; mutable int protected_mutable_integer;
const int protected_const_integer; const int protected_const_integer;
static mutable int protected_static_mutable_integer;
static const int protected_static_const_integer; static const int protected_static_const_integer;
enum protected_class_enum { enumerator }; enum protected_class_enum { enumerator2 };
private: private:
int private_integer; int private_integer;
static int private_static_integer; static int private_static_integer;
mutable int private_mutable_integer; mutable int private_mutable_integer;
const int private_const_integer; const int private_const_integer;
static mutable int private_static_mutable_integer;
static const int private_static_const_integer; static const int private_static_const_integer;
enum private_class_enum { enumerator }; enum private_class_enum { enumerator3 };
}; };
template <typename TypeParameter, int NonTypeParameter, template <typename TypeParameter, int NonTypeParameter,