diff options
Diffstat (limited to 'clang/test/Profile/c-general.c')
-rw-r--r-- | clang/test/Profile/c-general.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/clang/test/Profile/c-general.c b/clang/test/Profile/c-general.c index 91e5984272d0..67095b7bc7d0 100644 --- a/clang/test/Profile/c-general.c +++ b/clang/test/Profile/c-general.c @@ -25,7 +25,7 @@ // PGOGEN-LABEL: @simple_loops() // PGOUSE-LABEL: @simple_loops() // PGOGEN: store {{.*}} @[[SLC]], i32 0, i32 0 -void simple_loops() { +void simple_loops(void) { int i; // PGOGEN: store {{.*}} @[[SLC]], i32 0, i32 1 // PGOUSE: br {{.*}} !prof ![[SL1:[0-9]+]] @@ -46,7 +46,7 @@ void simple_loops() { // PGOGEN-LABEL: @conditionals() // PGOUSE-LABEL: @conditionals() // PGOGEN: store {{.*}} @[[IFC]], i32 0, i32 0 -void conditionals() { +void conditionals(void) { // PGOGEN: store {{.*}} @[[IFC]], i32 0, i32 1 // PGOUSE: br {{.*}} !prof ![[IF1:[0-9]+]] for (int i = 0; i < 100; ++i) { @@ -87,7 +87,7 @@ void conditionals() { // PGOGEN-LABEL: @early_exits() // PGOUSE-LABEL: @early_exits() // PGOGEN: store {{.*}} @[[EEC]], i32 0, i32 0 -void early_exits() { +void early_exits(void) { int i = 0; // PGOGEN: store {{.*}} @[[EEC]], i32 0, i32 1 @@ -134,7 +134,7 @@ void early_exits() { // PGOGEN-LABEL: @jumps() // PGOUSE-LABEL: @jumps() // PGOGEN: store {{.*}} @[[JMC]], i32 0, i32 0 -void jumps() { +void jumps(void) { int i; // PGOGEN: store {{.*}} @[[JMC]], i32 0, i32 1 @@ -216,7 +216,7 @@ third: // PGOGEN-LABEL: @switches() // PGOUSE-LABEL: @switches() // PGOGEN: store {{.*}} @[[SWC]], i32 0, i32 0 -void switches() { +void switches(void) { static int weights[] = {1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5}; // No cases -> no weights @@ -289,7 +289,7 @@ void switches() { // PGOGEN-LABEL: @big_switch() // PGOUSE-LABEL: @big_switch() // PGOGEN: store {{.*}} @[[BSC]], i32 0, i32 0 -void big_switch() { +void big_switch(void) { // PGOGEN: store {{.*}} @[[BSC]], i32 0, i32 1 // PGOUSE: br {{.*}} !prof ![[BS1:[0-9]+]] for (int i = 0; i < 32; ++i) { @@ -356,7 +356,7 @@ void big_switch() { // PGOGEN-LABEL: @boolean_operators() // PGOUSE-LABEL: @boolean_operators() // PGOGEN: store {{.*}} @[[BOC]], i32 0, i32 0 -void boolean_operators() { +void boolean_operators(void) { int v; // PGOGEN: store {{.*}} @[[BOC]], i32 0, i32 1 // PGOUSE: br {{.*}} !prof ![[BO1:[0-9]+]] @@ -395,7 +395,7 @@ void boolean_operators() { // PGOGEN-LABEL: @boolop_loops() // PGOUSE-LABEL: @boolop_loops() // PGOGEN: store {{.*}} @[[BLC]], i32 0, i32 0 -void boolop_loops() { +void boolop_loops(void) { int i = 100; // PGOGEN: store {{.*}} @[[BLC]], i32 0, i32 2 @@ -435,7 +435,7 @@ void boolop_loops() { // PGOGEN-LABEL: @conditional_operator() // PGOUSE-LABEL: @conditional_operator() // PGOGEN: store {{.*}} @[[COC]], i32 0, i32 0 -void conditional_operator() { +void conditional_operator(void) { int i = 100; // PGOGEN: store {{.*}} @[[COC]], i32 0, i32 1 @@ -453,7 +453,7 @@ void conditional_operator() { // PGOGEN-LABEL: @do_fallthrough() // PGOUSE-LABEL: @do_fallthrough() // PGOGEN: store {{.*}} @[[DFC]], i32 0, i32 0 -void do_fallthrough() { +void do_fallthrough(void) { // PGOGEN: store {{.*}} @[[DFC]], i32 0, i32 1 // PGOUSE: br {{.*}} !prof ![[DF1:[0-9]+]] for (int i = 0; i < 10; ++i) { @@ -475,7 +475,7 @@ void do_fallthrough() { // PGOGEN-LABEL: @static_func() // PGOUSE-LABEL: @static_func() // PGOGEN: store {{.*}} @[[STC]], i32 0, i32 0 -static void static_func() { +static void static_func(void) { // PGOGEN: store {{.*}} @[[STC]], i32 0, i32 1 // PGOUSE: br {{.*}} !prof ![[ST1:[0-9]+]] for (int i = 0; i < 10; ++i) { |