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