diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-03-28 03:27:52 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-03-28 03:27:52 +0000 |
commit | eb82a53aaa7880b7d3fd733aeee38b9aeee919ba (patch) | |
tree | aa951a1ad7b5f137efd0e8adff14a50adaa36af4 /test/Sema | |
parent | 8c952cd40ccec9d720931f27e7d722fed207d536 (diff) |
For -Wignored-qualifiers, don't warn on qualifiers which we acquire via a
typedef. Also don't warn on the _Atomic type specifier, just on the _Atomic
type qualifier.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178218 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema')
-rw-r--r-- | test/Sema/return.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Sema/return.c b/test/Sema/return.c index 77bd3f688e..e231e81b09 100644 --- a/test/Sema/return.c +++ b/test/Sema/return.c @@ -244,6 +244,11 @@ const int ignored_c_quals(); // expected-warning{{'const' type qualifier on retu const volatile int ignored_cv_quals(); // expected-warning{{'const volatile' type qualifiers on return type have no effect}} char* const volatile restrict ignored_cvr_quals(); // expected-warning{{'const volatile restrict' type qualifiers on return type have no effect}} +typedef const int CI; +CI ignored_quals_typedef(); + +const CI ignored_quals_typedef_2(); // expected-warning{{'const' type qualifier}} + // Test that for switch(enum) that if the switch statement covers all the cases // that we don't consider that for -Wreturn-type. enum Cases { C1, C2, C3, C4 }; |