brintos

brintos / llvm-project-archived public Read only

0
0
Text · 494 B · 341ac09 Raw
27 lines · c
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3// PR35924static void* malloc(int);5static void* malloc(int size) {6  return ((void*)0); /*do not use heap in this file*/7}8 9void *calloc(int, int, int); // expected-warning{{incompatible redeclaration of library function 'calloc'}} \10// expected-note{{'calloc' is a builtin with type 'void *}}11 12void f1(void) { 13  calloc(0, 0, 0);14}15 16void f2(void) {17  int index = 1;18}19 20static int index;21 22int f3(void) {23  return index << 2;24}25 26typedef int rindex;27