#include <iostream>
#include <cstddef>
int templateParam;
template <int &D> struct TestTemplate {
int value() {}
};
template <> int TestTemplate<templateParam>::value() {
return templateParam;
}
TestTemplate<templateParam> testVariable;
int main() {
std::cout << testVariable.value() << "\n";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0ZGRlZj4KCmludCB0ZW1wbGF0ZVBhcmFtOwoKdGVtcGxhdGUgPGludCAmRD4gc3RydWN0IFRlc3RUZW1wbGF0ZSB7CiAgICBpbnQgdmFsdWUoKSB7fQp9OwoKdGVtcGxhdGUgPD4gaW50IFRlc3RUZW1wbGF0ZTx0ZW1wbGF0ZVBhcmFtPjo6dmFsdWUoKSB7CiAgICByZXR1cm4gdGVtcGxhdGVQYXJhbTsKfQoKVGVzdFRlbXBsYXRlPHRlbXBsYXRlUGFyYW0+IHRlc3RWYXJpYWJsZTsKCmludCBtYWluKCkgewoKICAgIHN0ZDo6Y291dCA8PCB0ZXN0VmFyaWFibGUudmFsdWUoKSA8PCAiXG4iOwoKICAgIHJldHVybiAwOwp9