ewmscp  ..
Functions
cctest.cpp File Reference

(v0.19-24-g0617ca1 with changes)

#include <iostream>
Include dependency graph for cctest.cpp:

Go to the source code of this file.

Functions

int f (int a, int line)
 
int main (int, const char **)
 

Function Documentation

◆ f()

int f ( int  a,
int  line 
)

Definition at line 4 of file cctest.cpp.

4  {
5  std::cout << "called f(" << a << ") from line " << line << std::endl;
6  return a;
7 }

Referenced by throttle::watch::action(), collectStats(), consumer(), createFile(), creator(), buffqueue::dequeue(), buffqueue::enqueue(), copyRequest::base::expandAttrValue(), options::parser::fReadConfigFiles(), main(), readAndDeleteFile(), and copyRequest::base::setStatPrinter().

Here is the caller graph for this function:

◆ main()

int main ( int  ,
const char **   
)

Definition at line 10 of file cctest.cpp.

10  {
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 }

References f().

Here is the call graph for this function:
f
int f(int a, int line)
Definition: cctest.cpp:4