llvm-capstone/clang/test/Parser/cxx1z-attributes.cpp
Dimitry Andric b1aa87e120 Fix several accidental DOS line endings in source files
Summary:
There are a number of files in the tree which have been accidentally checked in with DOS line endings. Convert these to native line endings.

There are also a few files which have DOS line endings on purpose, and I have set the svn:eol-style property to 'CRLF' on those.

Reviewers: joerg, aaron.ballman

Subscribers: aaron.ballman, cfe-commits

Differential Revision: http://reviews.llvm.org/D15849

llvm-svn: 256704
2016-01-03 15:55:40 +00:00

15 lines
385 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify -std=c++1z %s
namespace [[]] foo {}
namespace [[]] {}
namespace [[]] bad = foo; // expected-error {{attributes cannot be specified on namespace alias}}
namespace [[]] A::B {} // expected-error {{attributes cannot be specified on a nested namespace definition}}
enum test {
bing [[]],
bar [[]] = 1,
baz [[]][[]],
quux [[]][[]] = 4
};