aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_posts/snippets/static_vs_inline_vs_unnamed_namespaces/unnamed_namespaces/weird/another.cpp
blob: 0e0bff94037453a89c7a0d8619082f90ceee7212 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "another.hpp"

#include <iostream>

struct Test {
    Test() {
        std::cout << "another.cpp: Test::Test()\n";
    }

    float y = 1.;
};

void another() {
    Test test;
}