commit | d18840d1e27c1b9c27bb74923b87f8ae33ec4736 | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Mon Jan 09 23:46:59 2012 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Mon Jan 09 23:46:59 2012 +0000 |
tree | f2ce80a27c44f82650f6945b89bca624c3758608 | |
parent | 1c94c16317c1a35c1549e022958188eea2567089 [diff] [blame] |
Don't crash with -Wlarge-by-value-copy and a dependent type. PR11726. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147812 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaCXX/warn-large-by-value-copy.cpp b/test/SemaCXX/warn-large-by-value-copy.cpp index 39dbd76..3e419ec 100644 --- a/test/SemaCXX/warn-large-by-value-copy.cpp +++ b/test/SemaCXX/warn-large-by-value-copy.cpp
@@ -40,3 +40,8 @@ } } + +template<typename T> class DependentPOD { + enum b { x }; + b foo() { return x; } +};