Skip to content
Snippets Groups Projects

test

g++ -o test -std=c++17  func_pattern.cxx -I.

Running the test:

$ ./test
2
77
79
12166
158
8.21963e-05
12166
1
6.75623e-09

These should be the same as the first 3 variables above.
2
77
79

XBD
2
158
12166

Looking at assembly:

g++ -S -o test.asm -std=c++17  func_pattern.cxx -I. -O3