summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/data-formatter/data-formatter-synthval/main.cpp
blob: fef128c1eb1e16d6cbcc988dc8c48353c5b0360d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class myInt {
    private: int theValue;
    public: myInt() : theValue(0) {}
    public: myInt(int _x) : theValue(_x) {}
    int val() { return theValue; }
};

myInt operator + (myInt x, myInt y) { return myInt(x.val() + y.val()); }

int main() {
    myInt x{3};
    myInt y{4};
    myInt z {x+y};
    return z.val(); // break here
}
OpenPOWER on IntegriCloud