Benjamin Kramer
6d574fe155
Update source location in test.
...
llvm-svn: 160964
2012-07-30 16:51:34 +00:00
Richard Smith
8e1c932ffb
Don't assert when trying to diagnose why a class with a constructor template is
...
non-trivial.
llvm-svn: 151486
2012-02-26 10:50:32 +00:00
Richard Smith
4297375561
C++11 allows unions to have static data members. Remove the corresponding
...
restriction and add some tests.
llvm-svn: 150721
2012-02-16 20:41:22 +00:00
John McCall
9fcede85dd
This test works now; enable it.
...
llvm-svn: 129335
2011-04-12 00:57:12 +00:00
Anders Carlsson
2ceb347e8b
A union cannot contain static data members or data members of reference type.
...
llvm-svn: 118381
2010-11-07 19:13:55 +00:00
John McCall
ef01f71a5a
Pretty-print anonymous types using their kind and presumed location.
...
Fixes PR6643. Patch by Mike M!
llvm-svn: 98946
2010-03-19 07:56:44 +00:00
John McCall
85f9055955
When pretty-printing tag types, only print the tag if we're in C (and
...
therefore not creating ElaboratedTypes, which are still pretty-printed
with the written tag).
Most of these testcase changes were done by script, so don't feel too
sorry for my fingers.
llvm-svn: 98149
2010-03-10 11:27:22 +00:00
Daniel Dunbar
8fbe78f6fc
Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.
...
- This is designed to make it obvious that %clang_cc1 is a "test variable"
which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it
can be useful to redefine what gets run as 'clang -cc1' (for example, to set
a default target).
llvm-svn: 91446
2009-12-15 20:14:24 +00:00
Sebastian Redl
e24b16205f
Make sure we actually have a definition before asking if it is implicit. Fixes PR4674.
...
llvm-svn: 85072
2009-10-25 22:31:45 +00:00
Mike Stump
af6ab88979
Prep for new warning.
...
llvm-svn: 76772
2009-07-22 20:02:03 +00:00
Douglas Gregor
8a27391190
"This patch implements the restrictions on union members detailed in
...
[class.union]p1", from John McCall!
llvm-svn: 76766
2009-07-22 18:25:24 +00:00