File: floatb.c

package info (click to toggle)
chibicc 1.0.23.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,832 kB
  • sloc: ansic: 62,911; sh: 275; makefile: 92
file content (11 lines) | stat: -rw-r--r-- 163 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11

#include "test.h"

float add_float2(float x, float y) {
  return x + y;
}
int main() {
  float r = add_float2(2.3, 3.8);
  printf("%f\n", r);
  ASSERT(6.1, r);
}