Added a test for C++11 statement attributes serialization.
authorAlexander Kornienko <alexfh@google.com>
Tue, 2 Oct 2012 23:11:53 +0000 (23:11 +0000)
committerAlexander Kornienko <alexfh@google.com>
Tue, 2 Oct 2012 23:11:53 +0000 (23:11 +0000)
commit2d4f311642b7d062909796c1ce3fd95fbd58151d
tree1b0f3f75a988e8ebfb40c47d1ed4a1adb3aaf701
parentaa7aeaa0a55ee39536f5a6b02091f46b330dac51
Added a test for C++11 statement attributes serialization.

Summary: Uses [[clang::fallthrough]] attribute in a template function, and -Wimplicit-fallthrough to check the attribute presence in an instantiation.

Reviewers: rsmith

Reviewed By: rsmith

CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D55

llvm-svn: 165068
clang/test/PCH/Inputs/cxx11-statement-attributes.h [new file with mode: 0644]
clang/test/PCH/cxx11-statement-attributes.cpp [new file with mode: 0644]