Logo
Explore Help
Sign In
mirrors/llvm-project
0
0
Fork 0
You've already forked llvm-project
mirror of https://github.com/llvm/llvm-project.git synced 2025-05-09 22:56:04 +00:00
Code Issues Projects Releases Wiki Activity
llvm-project/clang/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
239 B
C++
Raw Normal View History

Migrate 2007-01-02-UnboundedArray.cpp from llvm/test/FrontendC++. llvm-svn: 138138
2011-08-19 23:15:04 +00:00
// Make sure unbounded arrays compile with debug information.
//
Stop messing with the 'g' group of options in CompilerInvocation. With this change, most 'g' options are rejected by CompilerInvocation. They remain only as Driver options. The new way to request debug info from cc1 is with "-debug-info-kind={line-tables-only|limited|standalone}" and "-dwarf-version={2|3|4}". In the absence of a command-line option to specify Dwarf version, the Toolchain decides it, rather than placing Toolchain-specific logic in CompilerInvocation. Also fix a bug in the Windows compatibility argument parsing in which the "rightmost argument wins" principle failed. Differential Revision: http://reviews.llvm.org/D13221 llvm-svn: 249655
2015-10-08 04:24:12 +00:00
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o -
Migrate 2007-01-02-UnboundedArray.cpp from llvm/test/FrontendC++. llvm-svn: 138138
2011-08-19 23:15:04 +00:00
// PR1068
struct Object {
char buffer[];
};
int main(int argc, char** argv) {
new Object;
return 0;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 3349ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API