cf. Bug 19480
Diff Detail
Event Timeline
I pushed the previous patch in since it is a simple extension of existing template implementation logic for variable templates, which continues a trend that we started last summer.
Now, I am adding a test case.
I am not very experienced in writing linkage-level test cases yet. So, I could use additional pairs of eyes. Could someone please take a quick look and let me know if it's okay to go asap?
I imagine that it may be a bit overly verbose, but I'd rather be safer than sorrier.
test/CodeGenCXX/cxx1y-variable-template-linkage.cpp | ||
---|---|---|
10 | Instead of #ifdefs, can you merge together the two parts of this file into one? The small amount of the test that differs between the modes can be guarded by #if __has_feature(cxx_exceptions) |
LGTM with one thing fixed.
test/CodeGenCXX/cxx1y-variable-template-linkage.cpp | ||
---|---|---|
2–3 | Please add --check-prefix=CHECK to both of these FileCheck invocations. Otherwise, your CHECK-DAG: lines below will have no effect. |
Please add --check-prefix=CHECK to both of these FileCheck invocations. Otherwise, your CHECK-DAG: lines below will have no effect.