brintos

brintos / llvm-project-archived public Read only

0
0
Text · 445 B · f05a073 Raw
22 lines · c
1// RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s2_Complex double X;3void test1(int c) {4  X = 5;5}6void test2(void) {7  int i;8  double d = i;9  double _Complex a = 5;10 11  test1(a);12  a = 5;13  d = i;14}15int test3(void) {16  int a[2];17  a[0] = test3; // expected-error{{incompatible pointer to integer conversion assigning to 'int' from 'int (void)'}}18  return 0;19}20short x; void test4(char c) { x += c; }21int y; void test5(char c) { y += c; }22