Logo
Explore Help
Sign In
intel/llvm
1
0
Fork 0
You've already forked llvm
mirror of https://github.com/intel/llvm.git synced 2026-01-27 06:06:34 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
c50c27cca870fa033f3694a29ae78cc1821889e6
llvm/clang/test/CodeGen/variable-array.c

20 lines
280 B
C
Raw Normal View History

Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
2009-12-15 20:14:24 +00:00
// RUN: %clang_cc1 -emit-llvm < %s | grep puts | count 4
PR3248: Make sure the evaluate the operand of a sizeof when it has a VLA type. Adapted from patch by Tim Northover. llvm-svn: 69566
2009-04-20 03:21:44 +00:00
PR3247: Handle a couple of cases where we weren't emitting VLA sizes (and subsequently crashed). llvm-svn: 69567
2009-04-20 03:54:15 +00:00
// PR3248
PR3248: Make sure the evaluate the operand of a sizeof when it has a VLA type. Adapted from patch by Tim Northover. llvm-svn: 69566
2009-04-20 03:21:44 +00:00
int a(int x)
{
int (*y)[x];
return sizeof(*(puts("asdf"),y));
}
PR3247: Handle a couple of cases where we weren't emitting VLA sizes (and subsequently crashed). llvm-svn: 69567
2009-04-20 03:54:15 +00:00
// PR3247
int b() {
return sizeof(*(char(*)[puts("asdf")])0);
}
// PR3247
int c() {
static int (*y)[puts("asdf")];
return sizeof(*y);
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 973ms Template: 2ms
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