Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 14653f5cc8827d3979958286a8e186f7fd48d459 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
//!ASMDeclarationTest
//%CPP
asm("movl %1, %%eax;");

//!FunctionDefinitionTest
//%CPP
int foo()
{
    return 1;
}


//!SimpleDeclarationTest
//%CPP
int i = 2, y = 3;
int b = 0;

//!ExplicitTemplateInstantion
//%CPP
template class vector<int>;

//!GPPExplicitTemplateInstantion
//%CPP GNU
static template class vector<int>;
inline template class vector<int>;
inline template class vector<int>;

//!LinkageSpecification
//%CPP
extern "C" typedef void FUNC();


//!NamespaceAlias
//%CPP
namespace kurz = somenamespace;

//!NamespaceDefinition
//%CPP
namespace somenamespace
{


}

//!TemplateDeclaration
//%CPP
template<class T> class vector
{
};

//!NestedTemplateDeclaration
//%CPP
template<template <class T> class K> class vector
{
};

//!TemplateSpecialization
//%CPP
template<typename T> class MyQueue;
template<> class MyQueue<double>
{
    std::vector<double> data;

public:
    void Add(const double&);
    void Remove();
    void Print();
};

//!UsingDeclaration
//%CPP
struct A
{
    void f();
    enum E{ e};
    union 
    {
        int u;
    };
};
struct B : A
{
    using A::f;
    using typename A::e;
    using A::u;
};

//!UsingDirective
//%CPP
using namespace B;


//!VisibilityLabel
//%CPP
class A
{
public:
    int hello();

protected:
    int b, c;

private:
    int p;
};

//!CommentBeforeSimpleDeclaration
//%CPP
//Comment
int i = 2;

//!Typename qualifier
//%CPP
typename T::A* a6;

Back to the top