summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/dependence/src/hello.mpp
blob: e29bd7b958c446ef3a6be30284b881e70f748cd3 (plain)
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
export module hello;

export namespace hello {
#ifdef _MSC_VER
    int data__;
#else
    extern int data__;
#endif
    void say_hello();

    class say {
    public:
        say(int data);
        void hello();
    
    private:
        int data_;
    };
}

#ifndef _MSC_VER
export namespace {
    void anonymous() {
    }
}
#endif