aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_ENV.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_ENV.rb b/Library/Homebrew/test/test_ENV.rb
index 5eceaa2bf..8ab1c1f24 100644
--- a/Library/Homebrew/test/test_ENV.rb
+++ b/Library/Homebrew/test/test_ENV.rb
@@ -25,4 +25,11 @@ class EnvironmentTests < Test::Unit::TestCase
assert !ENV.cc.empty?
assert !ENV.cxx.empty?
end
+
+ def test_switching_compilers
+ ENV.llvm
+ ENV.clang
+ assert_equal ENV['LD'], ENV['CC']
+ assert_equal ENV['OBJC'], ENV['CC']
+ end
end