summaryrefslogtreecommitdiff
path: root/tests/exec/scope2.cpp
blob: 9b15638955a3d6bfd050b1ce01a2f3a2214f9838 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>

int main() {
  int i = 42;
  std::cout << i << "\n";
  if (1) {
    int j = 1;
    std::cout << j << "\n";
  } else {
    int j = 2;
    std::cout << j << "\n";
  }
  std::cout << i << "\n";
}