We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4681079 commit 13e9825Copy full SHA for 13e9825
lldb/unittests/Host/linux/HostTest.cpp
@@ -71,8 +71,9 @@ TEST_F(HostTest, GetProcessInfo) {
71
// Test timings
72
ASSERT_TRUE(Host::GetProcessInfo(getpid(), Info));
73
ProcessInstanceInfo::timespec user_time = Info.GetUserTime();
74
+ static volatile unsigned u = 0;
75
for (unsigned i = 0; i < 10'000'000; i++) {
- __asm__ __volatile__("" : "+g"(i) : :);
76
+ u = i;
77
}
78
79
ProcessInstanceInfo::timespec next_user_time = Info.GetUserTime();
0 commit comments