summaryrefslogtreecommitdiff
path: root/const-tests.cpp
blob: 6f07b055167df14c4438ee04ae551d24cd2eab54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <iostream>
#include "sales_item.hpp"

/*
 *
 * Just me testing a bit
 *
 *
 */

int main () {

	int i = 10;
	const int *p = &i;
	const int ci = 42;
	const int &r = ci;
	const int &r2 = i;
	std::cout << *p << " " << i << std::endl;
	std::cout << r << std::endl;
	i = 20;
	std::cout << *p << " " << i << std::endl;
	i = 3443;
	std::cout << r2 << std::endl;
	return 0;
}