ewmscp  ..
cctest.cpp
Go to the documentation of this file.
1 #include <iostream>
2 
3 
4 int f(int a, int line) {
5  std::cout << "called f(" << a << ") from line " << line << std::endl;
6  return a;
7 }
8 
9 
10 int main(int, const char **) {
11  if (f(3, __LINE__) - 1 > f(5, __LINE__) &&
12  f(4, __LINE__) == 0) {
13  std::cout << "test 1" << std::endl;
14  }
15  if (f(3, __LINE__) - 1 > f(5, __LINE__) &&
16 
17  f(4, __LINE__) == 0) {
18  std::cout << "test 2" << std::endl;
19  }
20  if ((f(3, __LINE__) - 1 > f(5, __LINE__)) &&
21  (f(4, __LINE__) == 0)) {
22  std::cout << "test 3" << std::endl;
23  }
24  if ((f(3, __LINE__) - 1 > f(5, __LINE__)) &&
25 
26  (f(4, __LINE__) == 0)) {
27  std::cout << "test 4" << std::endl;
28  }
29  return 0;
30 }
main
int main(int, const char **)
Definition: cctest.cpp:10
f
int f(int a, int line)
Definition: cctest.cpp:4