blob: b9f5141a531eddbfd67cc4ed3f8757f9338cedea [file] [log] [blame]
Richard Smith0706df42011-10-19 21:33:05 +00001// RUN: %clang_cc1 -verify -fsyntax-only -std=c++0x %s
2
3// Make sure we know these are legitimate commas and not typos for ';'.
4namespace Commas {
5 int a,
6 b [[ ]],
7 c alignas(double);
8}
Richard Smith7796eb52012-03-12 08:56:40 +00009
10struct S {};
11enum E { e };
12
13auto f() -> struct S {
14 return S();
15}
16auto g() -> enum E {
17 return E();
18}