r193099 - Extend test to show an alias can be before a definition.
Rafael Espindola
rafael.espindola at gmail.com
Mon Oct 21 11:24:30 PDT 2013
Author: rafael
Date: Mon Oct 21 13:24:30 2013
New Revision: 193099
URL: http://llvm.org/viewvc/llvm-project?rev=193099&view=rev
Log:
Extend test to show an alias can be before a definition.
Modified:
cfe/trunk/test/SemaCXX/cxx11-gnu-attrs.cpp
Modified: cfe/trunk/test/SemaCXX/cxx11-gnu-attrs.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/cxx11-gnu-attrs.cpp?rev=193099&r1=193098&r2=193099&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/cxx11-gnu-attrs.cpp (original)
+++ cfe/trunk/test/SemaCXX/cxx11-gnu-attrs.cpp Mon Oct 21 13:24:30 2013
@@ -11,8 +11,9 @@ int *[[gnu::unused]] attr_on_ptr;
// Valid cases.
+void aliasb [[gnu::alias("_Z6alias1v")]] ();
void alias1() {}
-void alias2 [[gnu::alias("_Z6alias1v")]] ();
+void aliasa [[gnu::alias("_Z6alias1v")]] ();
[[gnu::aligned(8)]] int aligned;
void aligned_fn [[gnu::aligned(32)]] ();
More information about the cfe-commits
mailing list