brintos

brintos / llvm-project-archived public Read only

0
0
Text · 485 B · 5829071 Raw
17 lines · c
1// RUN: %clang_cc1 -emit-llvm-only %s2 3// PR454104// Ensure we mark local extern redeclarations with a different type as non-builtin.5void non_builtin() {6  extern float exp();7  exp(); // Will crash due to wrong number of arguments if this calls the builtin.8}9 10// PR4541011// We mark exp() builtin as const with -fno-math-errno (default).12// We mustn't do that for extern redeclarations of builtins where the type differs.13float attribute() {14  extern float exp();15  return exp(1);16}17