This is an archive of the discontinued LLVM Phabricator instance.

Fix for Bug 19480 -- Adding a test case.
ClosedPublic

Authored by lvoufo on Jul 2 2014, 2:11 AM.

Details

Reviewers
dblaikie
rsmith
Summary

Diff Detail

Event Timeline

lvoufo updated this revision to Diff 11022.Jul 2 2014, 2:11 AM
lvoufo retitled this revision from to Fix for Bug 19480.
lvoufo updated this object.
lvoufo edited the test plan for this revision. (Show Details)
lvoufo added a reviewer: rsmith.
lvoufo added a subscriber: Unknown Object (MLST).
lvoufo updated this revision to Diff 11062.EditedJul 3 2014, 11:08 AM
lvoufo retitled this revision from Fix for Bug 19480 to Fix for Bug 19480 -- Adding a test case..
lvoufo added reviewers: echristo, dblaikie.

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.

rsmith added inline comments.Jul 8 2014, 1:11 PM
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)
echristo resigned from this revision.Jul 9 2014, 4:45 PM
echristo removed a reviewer: echristo.
lvoufo updated this revision to Diff 11905.Jul 25 2014, 4:51 PM

Updated with respect to previous comments. Is it ready now?

rsmith accepted this revision.Jul 25 2014, 4:56 PM
rsmith edited edge metadata.

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.

This revision is now accepted and ready to land.Jul 25 2014, 4:56 PM
lvoufo updated this revision to Diff 11906.Jul 25 2014, 4:57 PM
lvoufo edited edge metadata.

Ok. It's now perfect! Right?

Eugene.Zelenko added a subscriber: Eugene.Zelenko.

Committed in rL213987.