diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2007-07-17 06:20:38 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2007-07-17 06:20:38 +0000 |
| commit | 5bc753e26b7973d5d4534b5a7d8c44b908aea7de (patch) | |
| tree | 4e0746a51dc7b50c76485fd5772286c27bde1c5b /llvm/test/C++Frontend/2007-01-02-UnboundedArray.cpp | |
| parent | 396156e00b3eb1e6b7541cf602b667b0e7028d63 (diff) | |
| download | bcm5719-llvm-5bc753e26b7973d5d4534b5a7d8c44b908aea7de.tar.gz bcm5719-llvm-5bc753e26b7973d5d4534b5a7d8c44b908aea7de.zip | |
For PR1558:
Move tests that have C/C++ sources into the appropriate directory. This
allows them to be selected for testing based on whether llvm-gcc is
present or not.
llvm-svn: 39963
Diffstat (limited to 'llvm/test/C++Frontend/2007-01-02-UnboundedArray.cpp')
| -rw-r--r-- | llvm/test/C++Frontend/2007-01-02-UnboundedArray.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/C++Frontend/2007-01-02-UnboundedArray.cpp b/llvm/test/C++Frontend/2007-01-02-UnboundedArray.cpp new file mode 100644 index 00000000000..648d19be62b --- /dev/null +++ b/llvm/test/C++Frontend/2007-01-02-UnboundedArray.cpp @@ -0,0 +1,14 @@ +// Make sure unbounded arrays compile with debug information. +// +// RUN: %llvmgcc -O0 -c -g %s + +// PR1068 + +struct Object { + char buffer[]; +}; + +int main(int argc, char** argv) { + new Object; + return 0; +} |

