Skip to content

Instantly share code, notes, and snippets.

View nbigaouette's full-sized avatar

Nicolas Bigaouette nbigaouette

  • CrowdStrike
  • Montréal, Québec, Canada
View GitHub Profile
@nbigaouette
nbigaouette / unreachable_test.cpp
Created February 24, 2011 21:37
Simple test case for testing clang++ #pragma
// Compilation:
// clang++ -Wunreachable-code -c src/Main.cpp -o build/Main.o
// src/Main.cpp:18:9: warning: will never be executed [-Wunreachable-code]
// std::cout << "First debug output." << std::endl;
// ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// src/Main.cpp:22:9: warning: will never be executed [-Wunreachable-code]
// std::cout << "Second debug output." << std::endl;
// ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// 2 warnings generated.
//
==> Determining latest git revision...
-> Version found: 20101209
==> Making package: zen-kernel 20101209-1 (Thu Dec 9 10:50:07 EST 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Found kernel26-zen.conf
-> Found kernel26-zen.preset
-> Downloading linux-2.6-zen.v2.6.36-zen0-full-git.tar.gz...
--2010-12-09 10:50:11-- http://downloads.zen-kernel.org/snapshots/zen-stable/linux-2.6-zen.v2.6.36-zen0-full-git.tar.gz