[ create a new paste ] login | about

Link: http://codepad.org/TuWkRENh    [ raw code | output | fork ]

C++, pasted on Sep 30:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <cstdio>

int __attribute__((const)) foo () {
    puts("butts\n");
    return 5;
}

int main() {
    for (int i=0; i<foo(); ++i) {
        printf("%d\n", i);
    }
    return 0;
}


Output:
1
2
3
4
5
6
7
butts

0
1
2
3
4


Create a new paste based on this one


Comments: