~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to results/plugins/org.eclipse.cdt.core.tests/resources/pdomtests/overloadsWithinSingleTU/withinSingleTranslationUnit.cpp

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2011-10-06 21:15:04 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111006211504-8dutmljjih0zikfv
Tags: 8.0.1-1
* New upstream release.
* Split the JNI packages into a separate architecture dependent
  package and made eclipse-cdt architecture independent.
* Install JNI libraries into multiarch aware location
* Bumped Standards-Version to 3.9.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
class Foo {
2
 
public:
3
 
        Foo() {}
4
 
        void foo() {}
5
 
        void foo(int a) {}
6
 
        void foo(Foo f) {}
7
 
};
8
 
 
9
 
void bar() {printf("bar()\n");}
10
 
void bar(int a) {printf("bar(int)\n");}
11
 
void bar(int a, int b) {printf("bar(int,int)\n");}
12
 
void bar(Foo f, int z) {
13
 
        Foo a,b,c;
14
 
        printf("bar(Foo,int)\n");
15
 
}
16
 
 
17
 
void baz() {}
18
 
 
19
 
namespace X {
20
 
        class Foo {
21
 
        public:
22
 
                Foo(void) {}
23
 
                void m() {}
24
 
        };
25
 
 
26
 
        void bar() {printf("X::bar()\n");}
27
 
        void bar(int a) {printf("X::bar(int)\n");}
28
 
        void bar(int a, int b) {printf("X::bar(int,int)\n");}
29
 
        void bar(Foo f, int z) {
30
 
                Foo a,b,c;
31
 
                printf("X::bar(X::Foo,int)\n");
32
 
        }
33
 
 
34
 
        namespace Y {
35
 
                void qux() {}
36
 
        }
37
 
}
38
 
 
39
 
void references(Foo f, X::Foo h) {
40
 
    X::bar(); X::bar();
41
 
        X::bar(3); X::bar(3); X::bar(3);
42
 
        X::bar(4,4); X::bar(4,4); X::bar(4,4); X::bar(4,4);
43
 
        X::bar(h, 5); X::bar(h, 5); X::bar(h, 5); X::bar(h, 5); X::bar(h, 5);
44
 
 
45
 
    bar(); bar(); bar(); bar();
46
 
    bar(3); bar(3); bar(3);
47
 
    bar(2,2); bar(2,2);
48
 
    bar(f, 1);
49
 
    
50
 
    Foo y = new Foo();
51
 
    X::Foo z = new X::Foo();
52
 
}