summaryrefslogtreecommitdiffstats
path: root/tests/run-make/issue-36710/foo.cpp
blob: 8f878c2c2727a7f85f8d2640432d5d9f1f319c30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdint.h>

struct A {
    A() { v = 1234; }
    ~A() { v = 1; }
    uint32_t v;
};

A a;

extern "C" {
    uint32_t get() {
        return a.v;
    }
}