]> granicus.if.org Git - clang/commit
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)
commit7c83896fc0e5d93fb83240220c995f85595e6196
tree0c1ef9fdae20c4ee5f1dd1c660f9c2e1c3fee69c
parent8da68b8b03d72314b67ea44568e013ef79d93b40
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165068 91177308-0d34-0410-b5e6-96231b3b80d8
test/PCH/Inputs/cxx11-statement-attributes.h [new file with mode: 0644]
test/PCH/cxx11-statement-attributes.cpp [new file with mode: 0644]