commit | f299124fe491879fed48f611f6f299382d114dd4 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Thu Sep 10 23:31:45 2009 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Thu Sep 10 23:31:45 2009 +0000 |
tree | 731b8fa73a25acb79eac72d5cd5357f4e07458d6 | |
parent | e30572ae31b4b1875d7a6d4375b5c6b3a1caf9e3 [diff] [blame] |
Eliminate some "default"s in CheckICE. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81477 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaCXX/i-c-e-cxx.cpp b/test/SemaCXX/i-c-e-cxx.cpp index dc369ab..785ea0e 100644 --- a/test/SemaCXX/i-c-e-cxx.cpp +++ b/test/SemaCXX/i-c-e-cxx.cpp
@@ -8,3 +8,9 @@ struct X0 { static const int value = static_cast<int>(4.0); }; + +void f() { + if (const int value = 17) { + int array[value]; + } +}